parent
6bb6b66766
commit
27fc8bcc80
|
@ -89,6 +89,8 @@ proc fetchAncestorBlocksFromNetwork(rman: RequestManager,
|
||||||
res = Result[void, BlockError].ok()
|
res = Result[void, BlockError].ok()
|
||||||
|
|
||||||
if res.isOk():
|
if res.isOk():
|
||||||
|
if len(ublocks) > 0:
|
||||||
|
# We reward peer only if it returns something.
|
||||||
peer.updateScore(PeerScoreGoodBlocks)
|
peer.updateScore(PeerScoreGoodBlocks)
|
||||||
else:
|
else:
|
||||||
# We are not penalizing other errors because of the reasons described
|
# We are not penalizing other errors because of the reasons described
|
||||||
|
|
Loading…
Reference in New Issue