mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
feat(node): --minimal flag (#20960)
This commit is contained in:
@@ -170,7 +170,8 @@ impl LaunchContext {
|
||||
toml_config.peers.trusted_nodes_only = config.network.trusted_only;
|
||||
|
||||
// Merge static file CLI arguments with config file, giving priority to CLI
|
||||
toml_config.static_files = config.static_files.merge_with_config(toml_config.static_files);
|
||||
toml_config.static_files =
|
||||
config.static_files.merge_with_config(toml_config.static_files, config.pruning.minimal);
|
||||
|
||||
Ok(toml_config)
|
||||
}
|
||||
@@ -1301,6 +1302,7 @@ mod tests {
|
||||
let node_config = NodeConfig {
|
||||
pruning: PruningArgs {
|
||||
full: true,
|
||||
minimal: false,
|
||||
block_interval: None,
|
||||
sender_recovery_full: false,
|
||||
sender_recovery_distance: None,
|
||||
|
||||
Reference in New Issue
Block a user