feat(node): --minimal flag (#20960)

This commit is contained in:
Alexey Shekhirin
2026-01-13 12:54:26 +00:00
committed by GitHub
parent 61354e6c21
commit a5dd7d0106
10 changed files with 73 additions and 46 deletions

View File

@@ -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,