diff --git a/hbs2-peer/app/BlockDownload.hs b/hbs2-peer/app/BlockDownload.hs index 7ec7062b..69184c2d 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 > 5 ) do + when ( seenTimes > 50 ) do trace $ "ban block" <+> pretty h <+> "for a while" <+> parens (pretty seenTimes) liftIO $ atomically $ modifyTVar seenBlocks (HashMap.delete h) liftIO $ Cache.insert bannedBlocks h ()