Revert "Address issue #1538."

This reverts commit 1be3fd53b1.
This commit is contained in:
Zahary Karadjov 2020-10-05 19:25:47 +03:00
parent 1be3fd53b1
commit d9738b43b3
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 1 additions and 5 deletions

View File

@ -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.