mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-11 18:04:18 +00:00
Merge remote-tracking branch 'origin/unstable' into tree-states
This commit is contained in:
@@ -530,6 +530,16 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||
[default: 1]. You may change the compression level freely without re-syncing.")
|
||||
.takes_value(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("prune-payloads")
|
||||
.long("prune-payloads")
|
||||
.help("Prune execution payloads from Lighthouse's database. This saves space but \
|
||||
imposes load on the execution client, as payloads need to be \
|
||||
reconstructed and sent to syncing peers.")
|
||||
.takes_value(true)
|
||||
.default_value("true")
|
||||
)
|
||||
|
||||
/*
|
||||
* Misc.
|
||||
*/
|
||||
|
||||
@@ -362,6 +362,10 @@ pub fn get_config<E: EthSpec>(
|
||||
.map_err(|_| "auto-compact-db takes a boolean".to_string())?;
|
||||
}
|
||||
|
||||
if let Some(prune_payloads) = clap_utils::parse_optional(cli_args, "prune-payloads")? {
|
||||
client_config.store.prune_payloads = prune_payloads;
|
||||
}
|
||||
|
||||
/*
|
||||
* Zero-ports
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user