mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 14:54:12 +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:
|
except CancelledError as exc:
|
||||||
raise exc
|
raise exc
|
||||||
except CatchableError as exc:
|
except CatchableError as exc:
|
||||||
|
peer.updateScore(PeerScoreNoBlocks)
|
||||||
debug "Error while fetching ancestor blocks", exc = exc.msg,
|
debug "Error while fetching ancestor blocks", exc = exc.msg,
|
||||||
items = shortLog(items), peer = peer, peer_score = peer.getScore()
|
items = shortLog(items), peer = peer, peer_score = peer.getScore()
|
||||||
raise exc
|
raise exc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user