go-ethereum/eth
jwasinger 5f3c58f1de
eth/downloader: fix case where skeleton reorgs below the filled block (#29358)
This change adds a testcase and fixes a corner-case in the skeleton sync.

With this change, when doing the skeleton cleanup, we check if the filled header is acually within the range of what we were meant to backfill. If not, it means the backfill was a noop (possibly because we started and stopped it so quickly that it didn't have time to do any meaningful work). In that case, just don't clean up anything.

---------

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-04-24 09:07:39 +02:00
..
catalyst eth/catalyst, trie/pathdb: fix flaky tests (#29571) 2024-04-23 10:33:36 +02:00
downloader eth/downloader: fix case where skeleton reorgs below the filled block (#29358) 2024-04-24 09:07:39 +02:00
ethconfig cmd/geth, cmd/utils: rename config and flag to` VMTraceJsonConfig` (#29573) 2024-04-24 07:53:16 +02:00
fetcher eth/fetcher: using slices.Contains (#29383) 2024-04-02 21:17:34 +02:00
filters eth/filters: remove support for pending logs (#29574) 2024-04-22 10:31:17 +02:00
gasestimator all: use uint256 in state (#28598) 2024-01-23 14:51:58 +01:00
gasprice eth: Add eth_blobBaseFee RPC and blob fields to eth_feeHistory (#29140) 2024-04-22 12:17:06 +02:00
protocols all: fix various typos (#29600) 2024-04-23 13:09:42 +03:00
tracers eth, eth/tracers: process beacon root before transactions (#29402) 2024-04-24 07:58:05 +02:00
api_admin.go eth: ignore genesis block on importChain (#27956) 2023-08-21 13:32:34 -04:00
api_backend.go eth: Add eth_blobBaseFee RPC and blob fields to eth_feeHistory (#29140) 2024-04-22 12:17:06 +02:00
api_debug.go miner: refactor the miner, make the pending block on demand (#28623) 2024-03-06 14:45:03 +02:00
api_debug_test.go all: remove dependency on golang.org/exp (#29314) 2024-03-25 07:50:18 +01:00
api_miner.go miner: refactor the miner, make the pending block on demand (#28623) 2024-03-06 14:45:03 +02:00
backend.go cmd/geth, cmd/utils: rename config and flag to` VMTraceJsonConfig` (#29573) 2024-04-24 07:53:16 +02:00
bloombits.go eth: move eth.Config to a common package (#22205) 2021-02-05 13:51:15 +01:00
handler.go eth: simplify peer counting logic (#29420) 2024-04-03 14:08:52 +08:00
handler_eth.go consensus, cmd, core, eth: remove support for non-merge mode of operation (#29169) 2024-03-05 16:13:28 +02:00
handler_eth_test.go eth: fix typo (#29320) 2024-03-25 10:16:44 +08:00
handler_snap.go eth: check snap satelliteness, delegate drop to eth (#22235) 2021-02-02 10:44:36 +02:00
handler_test.go consensus, cmd, core, eth: remove support for non-merge mode of operation (#29169) 2024-03-05 16:13:28 +02:00
peer.go eth: remove admin.peers[i].eth.head and difficulty (#26804) 2023-03-06 09:27:46 +02:00
peerset.go consensus, cmd, core, eth: remove support for non-merge mode of operation (#29169) 2024-03-05 16:13:28 +02:00
state_accessor.go eth, eth/tracers: process beacon root before transactions (#29402) 2024-04-24 07:58:05 +02:00
sync.go consensus, cmd, core, eth: remove support for non-merge mode of operation (#29169) 2024-03-05 16:13:28 +02:00
sync_test.go consensus, cmd, core, eth: remove support for non-merge mode of operation (#29169) 2024-03-05 16:13:28 +02:00