1
0
Fork 0
forked from forks/go-ethereum
go-ethereum-modded-tocallarg/cmd
rjl493456442 90d44e715d
core, eth/downloader: implement pruning mode sync (#31414)
This pull request introduces new sync logic for pruning mode. The downloader will now skip
insertion of block bodies and receipts before the configured history cutoff point.

Originally, in snap sync, the header chain and other components (bodies and receipts) were
inserted separately. However, in Proof-of-Stake, this separation is unnecessary since the
sync target is already verified by the CL.

To simplify the process, this pull request modifies `InsertReceiptChain` to insert headers
along with block bodies and receipts together. Besides, `InsertReceiptChain` doesn't have
the notion of reorg, as the common ancestor is always be found before the sync and extra
side chain is truncated at the beginning if they fall in the ancient store. The stale
canonical chain flags will always be rewritten by the new chain. Explicit reorg logic is
no longer required in `InsertReceiptChain`.
2025-04-03 15:16:35 +02:00
..
abidump all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
abigen cmd/abigen, accounts/abi/bind: implement abigen version 2 (#31379) 2025-03-17 15:56:55 +01:00
blsync params: add hoodi testnet definition (#31406) 2025-03-18 12:07:49 +01:00
clef all: fix typos in docs and comments (#31548) 2025-04-02 13:52:40 -06:00
devp2p params: add hoodi testnet definition (#31406) 2025-03-18 12:07:49 +01:00
era cmd: use package filepath over path for file system operations (#29227) 2024-03-12 10:00:34 +01:00
ethkey cmd: fix some typos in readmes (#29405) 2024-04-11 14:06:49 +03:00
evm all: fix typos in docs and comments (#31548) 2025-04-02 13:52:40 -06:00
geth core, eth/downloader: implement pruning mode sync (#31414) 2025-04-03 15:16:35 +02:00
rlpdump build: update to golangci-lint 1.61.0 (#30587) 2024-10-14 19:25:22 +02:00
utils core, eth/downloader: implement pruning mode sync (#31414) 2025-04-03 15:16:35 +02:00
workload cmd/workload: fixed filter test request error handling (#31424) 2025-03-20 09:23:10 +01:00