diff --git a/hbs2-peer/app/BlockDownload.hs b/hbs2-peer/app/BlockDownload.hs index 69184c2d..5acedb1a 100644 --- a/hbs2-peer/app/BlockDownload.hs +++ b/hbs2-peer/app/BlockDownload.hs @@ -577,7 +577,7 @@ peerDownloadLoop peer = do seenTimes <- liftIO $ readTVarIO seenBlocks <&> fromMaybe 0 . HashMap.lookup h - when ( seenTimes > 50 ) do + when ( seenTimes > 100 ) do trace $ "ban block" <+> pretty h <+> "for a while" <+> parens (pretty seenTimes) liftIO $ atomically $ modifyTVar seenBlocks (HashMap.delete h) liftIO $ Cache.insert bannedBlocks h ()