go-ethereum/core/history
Sina M 6ae3f9fa56
core/history: refactor pruning configuration (#34036)
This PR introduces a new type HistoryPolicy which captures user intent
as opposed to pruning point stored in the blockchain which persists the
actual tail of data in the database.

It is in preparation for the rolling history expiry feature.

It comes with a semantic change: if database was pruned and geth is
running without a history mode flag (or explicit keep all flag) geth
will emit a warning but continue running as opposed to stopping the
world.
2026-03-18 13:54:29 +01:00
..
historymode.go core/history: refactor pruning configuration (#34036) 2026-03-18 13:54:29 +01:00
historymode_test.go core/history: refactor pruning configuration (#34036) 2026-03-18 13:54:29 +01:00