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:
André Silva
2023-03-07 11:19:19 +00:00
committed by GitHub
parent d86a32630b
commit 13b0f24abd
29 changed files with 103 additions and 214 deletions
@@ -930,7 +930,7 @@ fn finality_target_with_best_not_on_longest_chain() {
let mut import_params = BlockImportParams::new(BlockOrigin::Own, header);
import_params.body = Some(extrinsics);
import_params.fork_choice = Some(ForkChoiceStrategy::Custom(false));
block_on(client.import_block(import_params, Default::default())).unwrap();
block_on(client.import_block(import_params)).unwrap();
// double check that B3 is still the best...
assert_eq!(client.info().best_hash, b3.hash());
@@ -1963,7 +1963,7 @@ fn cleans_up_closed_notification_sinks_on_block_import() {
let mut import = BlockImportParams::new(origin, header);
import.body = Some(extrinsics);
import.fork_choice = Some(ForkChoiceStrategy::LongestChain);
block_on(client.import_block(import, Default::default())).unwrap();
block_on(client.import_block(import)).unwrap();
};
// after importing a block we should still have 4 notification sinks