mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 06:46:10 +00:00
Fix request manager is not penalizing peers which are failed to deliver blocks.
This commit is contained in:
parent
4deed117a9
commit
b70462acf8
@ -71,6 +71,7 @@ proc fetchAncestorBlocksFromNetwork(rman: RequestManager,
|
||||
except CancelledError as exc:
|
||||
raise exc
|
||||
except CatchableError as exc:
|
||||
peer.updateScore(PeerScoreNoBlocks)
|
||||
debug "Error while fetching ancestor blocks", exc = exc.msg,
|
||||
items = shortLog(items), peer = peer, peer_score = peer.getScore()
|
||||
raise exc
|
||||
|
Loading…
x
Reference in New Issue
Block a user