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 authored and GitHub committed 2022-08-08 09:31:26 +00:00
1 parent a314484865
commit 20c49b20a7
16 files changed
+79 -79

No files matched your search

+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)
}
}