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