erigon-pulse/cmd/integration/commands
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
..
flags.go integration stage_exec: add flag --no-commit (#7851) 2023-07-06 11:31:59 +07:00
refetence_db.go mdbx_to_mdbx: to use logger (#7860) 2023-07-09 08:04:20 +01:00
reset_state.go Snapshots of Bor events (#7901) 2023-08-18 17:10:35 +01:00
root.go move mdbx to new org (#8061) 2023-08-24 18:00:24 +07:00
stages.go sync: revert flawed dropUselessPeers logic and alleviate its issues (#8062) 2023-08-25 11:42:54 +02:00
state_domains.go EIP-4844: Rename "data gas" to "blob gas" (#7937) 2023-07-28 12:12:05 +02:00
state_stages.go Snapshots of Bor events (#7901) 2023-08-18 17:10:35 +01:00