mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 04:57:17 +00:00
32ca0e5ab1
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. |
||
---|---|---|
.. | ||
calltracer | ||
ethconfig | ||
ethconsensusconfig | ||
ethutils | ||
filters | ||
gasprice | ||
integrity | ||
protocols/eth | ||
stagedsync | ||
tracers | ||
api_backend.go | ||
api.go | ||
backend.go | ||
bloombits.go | ||
discovery.go |