mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-28 23:34:59 +00:00
Address issue #1538.
This commit is contained in:
parent
67a93f558b
commit
1be3fd53b1
@ -89,7 +89,11 @@ proc fetchAncestorBlocksFromNetwork(rman: RequestManager,
|
||||
res = Result[void, BlockError].ok()
|
||||
|
||||
if res.isOk():
|
||||
peer.updateScore(PeerScoreGoodBlocks)
|
||||
if len(ublocks) > 0:
|
||||
peer.updateScore(PeerScoreGoodBlocks)
|
||||
else:
|
||||
# Peer returned empty response
|
||||
peer.updateScore(PeerScoreNoBlocks)
|
||||
else:
|
||||
# We are not penalizing other errors because of the reasons described
|
||||
# above.
|
||||
|
Loading…
x
Reference in New Issue
Block a user