go-ethereum/eth/protocols/snap
jonny rhea 184bde8ca0 eth/protocols/snap, eth/downloader: version SyncProgress and use *types.Header for pivot tracking
eth/protocols/snap: remove unnecessary Sync() loop, drop errPivotStale and resetDownloadState

eth/protocols/snap: move pivot-reorg detection into Sync(), rename checkDeepReorg to isPivotReorged

eth/protocols/snap: don't apply BALs to accounts that haven't been downloaded yet.

eth/protocols/snap: drop empty accounts and zero-value storage on BAL apply

eth/protocols/snap: wipe flat state on sync reset, consolidate reorg detection

eth/protocols/snap: persist Complete=true on sync completion to skip redundant resyncs

eth/protocols/snap: persist catchUp progress incrementally to enable resume

eth/protocols/snap: verify BALs during fetch to route around bad peers, make catchUp cancelable

core/rawdb,eth/protocols/snap: add DeleteSnapshotSyncStatus helper
2026-05-07 16:42:41 -05:00
..
bal_apply.go eth/protocols/snap, eth/downloader: version SyncProgress and use *types.Header for pivot tracking 2026-05-07 16:42:41 -05:00
bal_apply_test.go eth/protocols/snap, eth/downloader: version SyncProgress and use *types.Header for pivot tracking 2026-05-07 16:42:41 -05:00
discovery.go core, eth: split eth package, implement snap protocol (#21482) 2020-12-14 10:27:15 +01:00
gentrie.go eth/downloader, eth/protocols/snap: BAL req wiring 2026-05-07 16:37:50 -05:00
gentrie_test.go common, eth: remove duplicate test cases (#32624) 2025-09-19 17:20:44 -06:00
handler.go eth/protocols/snap: fix issue where emptylist results for BALs are not retried. also, fix weird case where peers return more data than requested. 2026-05-07 16:38:18 -05:00
handler_fuzzing_test.go core, eth/protocols/snap: Snap/2 Protocol + BAL Serving (#34083) 2026-04-03 14:10:32 +08:00
handler_test.go core/types/bal: update the BAL definition to the latest spec (#34799) 2026-04-26 23:32:39 +08:00
handlers.go eth/downloader, eth/protocols/snap: BAL req wiring 2026-05-07 16:37:50 -05:00
metrics.go eth/downloader, eth/protocols/snap: BAL req wiring 2026-05-07 16:37:50 -05:00
peer.go eth/downloader, eth/protocols/snap: BAL req wiring 2026-05-07 16:37:50 -05:00
progress_test.go eth/protocols/snap, eth/downloader: version SyncProgress and use *types.Header for pivot tracking 2026-05-07 16:42:41 -05:00
protocol.go eth/protocols/snap: fix block accessList encoding rule (#34644) 2026-04-07 20:13:19 +08:00
range.go eth/protocols/snap: optimize incHash (#32748) 2025-10-10 13:48:25 +08:00
range_test.go eth/protocols/snap: fix snap sync failure on empty storage range (#28306) 2023-10-13 09:08:26 +02:00
sort_test.go core, les, eth: port snap sync changes (#24898) 2022-07-15 14:55:51 +03:00
sync.go eth/protocols/snap, eth/downloader: version SyncProgress and use *types.Header for pivot tracking 2026-05-07 16:42:41 -05:00
sync_test.go eth/protocols/snap, eth/downloader: version SyncProgress and use *types.Header for pivot tracking 2026-05-07 16:42:41 -05:00