go-ethereum/eth/downloader
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
..
api.go rpc: remove deprecated method "Notifier.Closed" (#29162) 2024-03-05 14:44:23 +01:00
beacondevsync.go cmd, eth: switch the dev synctarget to hash from block (#28209) 2023-09-29 22:11:15 +03:00
beaconsync.go all: use timer instead of time.After in loops, to avoid memleaks (#29241) 2024-04-09 08:51:54 +02:00
downloader.go all: use timer instead of time.After in loops, to avoid memleaks (#29241) 2024-04-09 08:51:54 +02:00
downloader_test.go eth/downloader: fix case where skeleton reorgs below the filled block (#29358) 2024-04-24 09:07:39 +02:00
events.go cmd,eth: 16400 Add an option to stop geth once in sync. WIP for light mode (#17321) 2019-01-30 08:40:36 +01:00
fetchers.go cmd/devp2p, eth: drop eth/66 (#28239) 2023-10-03 15:03:19 +03:00
fetchers_concurrent.go eth/downloader: fix timeout resurrection panic (#26652) 2023-02-09 14:56:15 +02:00
fetchers_concurrent_bodies.go cmd/devp2p, eth: drop eth/66 (#28239) 2023-10-03 15:03:19 +03:00
fetchers_concurrent_headers.go cmd/devp2p, eth: drop eth/66 (#28239) 2023-10-03 15:03:19 +03:00
fetchers_concurrent_receipts.go cmd/devp2p, eth: drop eth/66 (#28239) 2023-10-03 15:03:19 +03:00
metrics.go eth: request id dispatcher and direct req/reply APIs (#23576) 2021-11-26 13:26:03 +02:00
modes.go eth: request id dispatcher and direct req/reply APIs (#23576) 2021-11-26 13:26:03 +02:00
peer.go cmd, eth: switch the dev synctarget to hash from block (#28209) 2023-09-29 22:11:15 +03:00
queue.go crypto/kzg4844: add helpers for versioned blob hashes (#28827) 2024-01-19 11:41:17 +01:00
queue_test.go log: use native log/slog instead of golang/exp (#29302) 2024-03-22 13:17:59 +01:00
resultstore.go all: fix typos in comments (#28682) 2023-12-18 09:35:12 +01:00
skeleton.go eth/downloader: fix case where skeleton reorgs below the filled block (#29358) 2024-04-24 09:07:39 +02:00
skeleton_test.go all: fix mismatched names in comments (#29348) 2024-03-26 21:01:28 +01:00
statesync.go eth: request id dispatcher and direct req/reply APIs (#23576) 2021-11-26 13:26:03 +02:00
testchain_test.go core: move genesis alloc types to core/types (#29003) 2024-02-16 19:05:33 +01:00