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…
Reference in New Issue