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