Rename --pruning and --keep-blocks to be more similar to one another (#11934)

* rename prunning and keep-blocks flags

* Add aliases in keep-blocks and pruning for backward compatibility

* Rename in code variables from  and  to  and
This commit is contained in:
Nikos Kontakis
2022-08-08 11:31:26 +02:00
committed by GitHub
parent a314484865
commit 20c49b20a7
16 changed files with 79 additions and 79 deletions
+4 -4
View File
@@ -95,14 +95,14 @@ impl<Block: BlockT, ExecutorDispatch, G: GenesisInit>
}
/// Create new `TestClientBuilder` with default backend and pruning window size
pub fn with_pruning_window(keep_blocks: u32) -> Self {
let backend = Arc::new(Backend::new_test(keep_blocks, 0));
pub fn with_pruning_window(blocks_pruning: u32) -> Self {
let backend = Arc::new(Backend::new_test(blocks_pruning, 0));
Self::with_backend(backend)
}
/// Create new `TestClientBuilder` with default backend and storage chain mode
pub fn with_tx_storage(keep_blocks: u32) -> Self {
let backend = Arc::new(Backend::new_test_with_tx_storage(keep_blocks, 0));
pub fn with_tx_storage(blocks_pruning: u32) -> Self {
let backend = Arc::new(Backend::new_test_with_tx_storage(blocks_pruning, 0));
Self::with_backend(backend)
}
}