erigon-pulse/turbo/cli
battlmonstr 32ca0e5ab1
sync: revert flawed dropUselessPeers logic and alleviate its issues (#8062)
The current logic is flawed, because it drops all peers that are less
synced.
It is valid to return empty responses by the eth spec.
A proper logic should penalize from the context of the sync process,
where enough "reputation" data is collected about a peer.

In order to be able to connect to erigon 2.48 peers that have
--sentry.drop-useless-peers enabled,
this adds a check to not reply with an empty headers list.
If we reply with an empty list, we're going to be considered useless and
kicked.
Once enough of erigon nodes are updated in the network past this commit,
this check should be removed,
because it is totally acceptable to return an empty list by the eth
spec.
2023-08-25 11:42:54 +02:00
..
default_flags.go sync: revert flawed dropUselessPeers logic and alleviate its issues (#8062) 2023-08-25 11:42:54 +02:00
flags.go Replaced old version of Engine API with newer version (#7972) 2023-08-05 23:33:10 +02:00
helpers.go e3: read files list from db (#6833) 2023-02-13 05:17:01 +00:00