mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 04:01:51 +00:00
rename --reconstruct-historic-states to --archive (#8795)
Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user