mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 22:36:01 +00:00
Fix sync_manager.nim not rewarding peers for good responses. (#1660)
This commit is contained in:
parent
88eb0c06c7
commit
9abdbdabd8
@ -462,6 +462,8 @@ proc push*[T](sq: SyncQueue[T], sr: SyncRequest[T],
|
||||
|
||||
if res.isOk:
|
||||
sq.outSlot = sq.outSlot + item.request.count
|
||||
# If there no error we should reward peer with some bonus score.
|
||||
item.request.item.updateScore(PeerScoreGoodBlocks)
|
||||
sq.wakeupWaiters()
|
||||
else:
|
||||
debug "Block pool rejected peer's response", peer = item.request.item,
|
||||
|
Loading…
x
Reference in New Issue
Block a user