mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-24 04:35:04 +00:00
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:
1 parent
a314484865
commit
20c49b20a7
16 files changed
+79
-79
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user