Renaming CLI prunning and keep-blocks flags (#1514)

* Rename keep blocksflag

* Add correct use of BlocksPruning

* update lockfile for {"polkadot", "substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Nikos Kontakis
2022-08-08 16:22:57 +02:00
committed by GitHub
parent 6ad411a5fe
commit f545af2a81
2 changed files with 251 additions and 249 deletions
+249 -247
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -48,7 +48,7 @@ use sc_client_api::execution_extensions::ExecutionStrategies;
use sc_network::{config::TransportConfig, multiaddr, NetworkService};
use sc_service::{
config::{
DatabaseSource, KeepBlocks, KeystoreConfig, MultiaddrWithPeerId, NetworkConfiguration,
BlocksPruning, DatabaseSource, KeystoreConfig, MultiaddrWithPeerId, NetworkConfiguration,
OffchainWorkerConfig, PruningMode, WasmExecutionMethod,
},
BasePath, ChainSpec, Configuration, Error as ServiceError, PartialComponents, Role,
@@ -653,7 +653,7 @@ pub fn node_config(
state_cache_size: 67108864,
state_cache_child_ratio: None,
state_pruning: Some(PruningMode::ArchiveAll),
keep_blocks: KeepBlocks::All,
blocks_pruning: BlocksPruning::All,
chain_spec: spec,
wasm_method: WasmExecutionMethod::Interpreted,
// NOTE: we enforce the use of the native runtime to make the errors more debuggable