mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
consensus: remove caching functionality from block import pipeline (#13551)
* consensus: remove caching functionality from block import pipeline * client: update docs on Verifier::verify * node: fix block production benchmark
This commit is contained in:
@@ -137,7 +137,7 @@ fn import_block(
|
||||
params.state_action =
|
||||
StateAction::ApplyChanges(sc_consensus::StorageChanges::Changes(built.storage_changes));
|
||||
params.fork_choice = Some(ForkChoiceStrategy::LongestChain);
|
||||
futures::executor::block_on(client.import_block(params, Default::default()))
|
||||
futures::executor::block_on(client.import_block(params))
|
||||
.expect("importing a block doesn't fail");
|
||||
}
|
||||
|
||||
|
||||
@@ -760,7 +760,7 @@ mod tests {
|
||||
);
|
||||
params.fork_choice = Some(ForkChoiceStrategy::LongestChain);
|
||||
|
||||
futures::executor::block_on(block_import.import_block(params, Default::default()))
|
||||
futures::executor::block_on(block_import.import_block(params))
|
||||
.expect("error importing test block");
|
||||
},
|
||||
|service, _| {
|
||||
|
||||
@@ -682,10 +682,8 @@ impl BenchContext {
|
||||
assert_eq!(self.client.chain_info().best_number, 0);
|
||||
|
||||
assert_eq!(
|
||||
futures::executor::block_on(
|
||||
self.client.import_block(import_params, Default::default())
|
||||
)
|
||||
.expect("Failed to import block"),
|
||||
futures::executor::block_on(self.client.import_block(import_params))
|
||||
.expect("Failed to import block"),
|
||||
ImportResult::Imported(ImportedAux {
|
||||
header_only: false,
|
||||
clear_justification_requests: false,
|
||||
|
||||
Reference in New Issue
Block a user