mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
Storage chains sync (#9171)
* Sync storage chains * Test * Apply suggestions from code review Co-authored-by: cheme <emericchevalier.pro@gmail.com> * Separate block body and indexed body * Update client/db/src/lib.rs Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> Co-authored-by: cheme <emericchevalier.pro@gmail.com> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
This commit is contained in:
@@ -102,6 +102,16 @@ impl<Block: BlockT, Executor, G: GenesisInit> TestClientBuilder<Block, Executor,
|
||||
let backend = Arc::new(Backend::new_test(keep_blocks, 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,
|
||||
sc_client_db::TransactionStorageMode::StorageChain,
|
||||
));
|
||||
Self::with_backend(backend)
|
||||
}
|
||||
}
|
||||
|
||||
impl<Block: BlockT, Executor, Backend, G: GenesisInit> TestClientBuilder<Block, Executor, Backend, G> {
|
||||
|
||||
Reference in New Issue
Block a user