mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 05:14:35 +00:00
Squash merge of 3565
Squashed commit of the following: commita4960ebfd7Author: Michael Sproul <michael@sigmaprime.io> Date: Mon Sep 12 12:10:23 2022 +1000 Clippy commitb28e8d0848Author: Michael Sproul <michael@sigmaprime.io> Date: Mon Sep 12 11:41:45 2022 +1000 Add flag to disable prune on startup commitde775d6aa5Author: Michael Sproul <michael@sigmaprime.io> Date: Mon Sep 12 11:19:21 2022 +1000 Fix and update beacon chain tests commit2289b20bcaAuthor: Michael Sproul <michael@sigmaprime.io> Date: Fri Sep 9 17:40:21 2022 +1000 Implement DB manager command commitd5adc2ebc5Author: Michael Sproul <michael@sigmaprime.io> Date: Fri Sep 9 12:56:27 2022 +1000 Implement on-demand pruning operation commit69d54741c1Author: Michael Sproul <michael@sigmaprime.io> Date: Thu Sep 8 16:25:04 2022 +1000 Delete finalized exec payloads while running
This commit is contained in:
@@ -515,6 +515,13 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||
.takes_value(true)
|
||||
.default_value("true")
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("prune-payloads-on-startup")
|
||||
.long("prune-payloads-on-startup")
|
||||
.help("Check for execution payloads to prune on start-up.")
|
||||
.takes_value(true)
|
||||
.default_value("true")
|
||||
)
|
||||
|
||||
/*
|
||||
* Misc.
|
||||
|
||||
@@ -358,6 +358,12 @@ pub fn get_config<E: EthSpec>(
|
||||
.map_err(|_| "auto-compact-db takes a boolean".to_string())?;
|
||||
}
|
||||
|
||||
if let Some(prune_payloads_on_init) =
|
||||
clap_utils::parse_optional(cli_args, "prune-payloads-on-startup")?
|
||||
{
|
||||
client_config.store.prune_payloads_on_init = prune_payloads_on_init;
|
||||
}
|
||||
|
||||
/*
|
||||
* Zero-ports
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user