erigon-pulse/eth
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
..
calltracer Convert *vm.EVM to vm.VMInterface in Tracers (#6590) 2023-01-16 22:28:50 +00:00
ethconfig sync: revert flawed dropUselessPeers logic and alleviate its issues (#8062) 2023-08-25 11:42:54 +02:00
ethconsensusconfig Snapshots of Bor events (#7901) 2023-08-18 17:10:35 +01:00
ethutils reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
filters reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
gasprice Replaced old version of Engine API with newer version (#7972) 2023-08-05 23:33:10 +02:00
integrity go 1.19 atomics (#7164) 2023-03-23 05:11:28 +00:00
protocols/eth fix linter 2023-08-25 12:05:45 +07:00
stagedsync move mdbx to new org (#8061) 2023-08-24 18:00:24 +07:00
tracers Update execution-spec-tests to v1.0.1 (#7980) 2023-08-08 15:01:35 +02:00
api_backend.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
api.go Embed rpcdaemon: prepared direct clients (#3492) 2022-02-12 19:47:19 +07:00
backend.go sync: revert flawed dropUselessPeers logic and alleviate its issues (#8062) 2023-08-25 11:42:54 +02:00
bloombits.go remove database field from Ethereum object (#1750) 2021-04-19 14:56:44 +07:00
discovery.go rename (#1978) 2021-05-20 19:25:53 +01:00