parent
1be3fd53b1
commit
d9738b43b3
|
@ -89,11 +89,7 @@ proc fetchAncestorBlocksFromNetwork(rman: RequestManager,
|
|||
res = Result[void, BlockError].ok()
|
||||
|
||||
if res.isOk():
|
||||
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…
Reference in New Issue