1
0
Fork 0
forked from forks/go-ethereum
go-ethereum-modded-tocallarg/cmd
Felix Lange 48ec86abbb
core: initialize history pruning in BlockChain (#31636)
I added the history mode configuration in eth/ethconfig initially, since
it seemed like the logical place. But it turns out we need access to the
intended pruning setting at a deeper level, and it actually needs to be
integrated with the blockchain startup procedure.

With this change applied, if a node previously had its history pruned,
and is subsequently restarted **without** the `--history.chain
postmerge` flag, the `BlockChain` initialization code will now verify
the freezer tail against the known pruning point of the predefined
network and will restore pruning status. Note that this logic is quite
restrictive, we allow non-zero tail only for known networks, and only
for the specific pruning point that is defined.
2025-04-15 14:32:46 +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 beacon/blsync: add checkpoint import/export file feature (#31469) 2025-04-03 16:04:11 +02:00
clef all: fix typos in docs and comments (#31548) 2025-04-02 13:52:40 -06:00
devp2p cmd/devp2p/internal/v5test: log test descriptions (#31551) 2025-04-03 15:58:37 +02: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: initialize history pruning in BlockChain (#31636) 2025-04-15 14:32:46 +02:00
rlpdump build: update to golangci-lint 1.61.0 (#30587) 2024-10-14 19:25:22 +02:00
utils beacon/blsync: add checkpoint import/export file feature (#31469) 2025-04-03 16:04:11 +02:00
workload core: initialize history pruning in BlockChain (#31636) 2025-04-15 14:32:46 +02:00