erigon-pulse/cmd
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
..
abigen e3: erigon_getBalanceChanges (#7704) 2023-06-11 11:49:53 +07:00
bootnode [devnet] separate logging p2p (#7549) 2023-05-19 23:08:45 +01:00
capcli Caplin: Implemented SQL beacon indexer (#8043) 2023-08-22 01:24:26 +02:00
caplin-phase1 Caplin: Implemented SQL beacon indexer (#8043) 2023-08-22 01:24:26 +02:00
caplin-regression [caplin] extracting beacon state interface (#7910) 2023-07-20 00:20:33 +02:00
devnet Devnet contract utils (#7928) 2023-07-28 14:03:32 +01:00
downloader mdbx_to_mdbx: to use logger (#7860) 2023-07-09 08:04:20 +01:00
erigon cli: die if a config file is invalid (#8025) 2023-08-22 10:50:31 +02:00
erigoncustom erigon backup: v0 of sub-command (#7396) 2023-04-27 10:42:12 +07:00
evm move mdbx to new org (#8061) 2023-08-24 18:00:24 +07:00
hack Remove unused transaction and node packets from eth/protocols (#8057) 2023-08-24 06:50:04 +02:00
integration sync: revert flawed dropUselessPeers logic and alleviate its issues (#8062) 2023-08-25 11:42:54 +02:00
observer p2p: fix RLPx disconnect message decoding (#8056) 2023-08-24 13:49:19 +02:00
p2psim [devnet tool] Separate logging (#7553) 2023-05-20 14:48:16 +01:00
pics Replaced old version of Engine API with newer version (#7972) 2023-08-05 23:33:10 +02:00
prometheus Grafana board: up version, clean filling (#7844) 2023-07-05 10:43:31 +07:00
release [caplin] pkg refactor (#7507) 2023-05-13 23:44:07 +02:00
rlpdump rename (#1978) 2021-05-20 19:25:53 +01:00
rpcdaemon Snapshots of Bor events (#7901) 2023-08-18 17:10:35 +01:00
rpctest e3: move domains to tables.go (#7707) 2023-06-11 21:12:05 +07:00
sentinel Caplin: Implemented SQL beacon indexer (#8043) 2023-08-22 01:24:26 +02:00
sentry sync: revert flawed dropUselessPeers logic and alleviate its issues (#8062) 2023-08-25 11:42:54 +02:00
state Snapshots of Bor events (#7901) 2023-08-18 17:10:35 +01:00
txpool mdbx_to_mdbx: to use logger (#7860) 2023-07-09 08:04:20 +01:00
utils sync: revert flawed dropUselessPeers logic and alleviate its issues (#8062) 2023-08-25 11:42:54 +02:00
verkle tmpdb: move to tmpdir (#8003) 2023-08-12 01:06:15 +06:00