rename --reconstruct-historic-states to --archive (#8795)

Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
Lion - dapplion
2026-02-11 16:45:48 -07:00
committed by GitHub
parent 8d72cc34eb
commit d7c78a7f89
22 changed files with 67 additions and 64 deletions

View File

@@ -1246,9 +1246,12 @@ pub fn cli_app() -> Command {
.display_order(0)
)
.arg(
Arg::new("reconstruct-historic-states")
.long("reconstruct-historic-states")
.help("After a checkpoint sync, reconstruct historic states in the database. This requires syncing all the way back to genesis.")
Arg::new("archive")
.long("archive")
.alias("reconstruct-historic-states")
.help("Store all beacon states in the database. When checkpoint syncing, \
states are reconstructed after backfill completes. This requires \
syncing all the way back to genesis.")
.action(ArgAction::SetTrue)
.help_heading(FLAG_HEADER)
.display_order(0)

View File

@@ -554,8 +554,8 @@ pub fn get_config<E: EthSpec>(
ClientGenesis::DepositContract
};
if cli_args.get_flag("reconstruct-historic-states") {
client_config.chain.reconstruct_historic_states = true;
if cli_args.get_flag("archive") {
client_config.chain.archive = true;
client_config.chain.genesis_backfill = true;
}