erigon-pulse/eth
milen 1f237c0aaf
borheimdall: only fetch next span when in last sprint of current span (#9096)
Heimdall prepares the next span a number of sprints before the current
span ends. Currently we always fetch the next span regardless of which
sprint we are in during the current span. This causes a liveness issue
due to how the Heimdall client works (it infinitely retries until it
fetches a span - this issue will be fixed in a separate PR). This PR
fixes this by matching what bor does - it fetches the next span only in
the last sprint of the current span.

Changes:

- Adds a unit test for the above
- Adds a new function BlockInLastSprintOfSpan
- Some code reorg and cleanup - moves the span num related functions
from the bor package to the span sub package for better logical grouping
2023-12-28 15:52:49 +00:00
..
calltracer evm: no interface (#8376) 2023-10-05 12:23:08 +07:00
ethconfig E2 snapshot uploading (#9056) 2023-12-27 22:05:09 +00:00
ethconsensusconfig rpcdaemon: must not create db - because doesn't know right parameters (#8445) 2023-10-12 14:11:46 +07:00
ethutils reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
filters Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
gasprice EthereumExecutionService in MockSentry (#8373) 2023-10-05 18:30:19 +02:00
integrity Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
protocols/eth Simplify RLP size calculations (#8506) 2023-10-18 09:28:11 +02:00
stagedsync borheimdall: only fetch next span when in last sprint of current span (#9096) 2023-12-28 15:52:49 +00:00
tracers Adds access list sorting (#8933) 2023-12-09 17:25:20 +07: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 E2 snapshot uploading (#9056) 2023-12-27 22:05:09 +00: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