Refactored block body database scheme (#10779)

* Refactored tx storage database scheme

* Bump parity-db

* fmt

* Fix handling invalid index size + test

* Removed superflous result

* Minor changes

* fmt
This commit is contained in:
Arkadiy Paronyan
2022-03-04 11:30:29 +01:00
committed by GitHub
parent e6b6c8aac6
commit 2bd493ff12
15 changed files with 332 additions and 295 deletions
+1 -5
View File
@@ -105,11 +105,7 @@ impl<Block: BlockT, ExecutorDispatch, G: GenesisInit>
/// 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,
sc_client_db::TransactionStorageMode::StorageChain,
));
let backend = Arc::new(Backend::new_test_with_tx_storage(keep_blocks, 0));
Self::with_backend(backend)
}
}