mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 02:17:58 +00:00
Introduce 'intermediate_insert' method to hide implementation details (#12215)
Renaming from 'intermediate_take' to 'intermediate_remove'
This commit is contained in:
@@ -642,10 +642,8 @@ fn propose_and_import_block<Transaction: Send + 'static>(
|
||||
let mut import = BlockImportParams::new(BlockOrigin::Own, block.header);
|
||||
import.post_digests.push(seal);
|
||||
import.body = Some(block.extrinsics);
|
||||
import.intermediates.insert(
|
||||
Cow::from(INTERMEDIATE_KEY),
|
||||
Box::new(BabeIntermediate::<TestBlock> { epoch_descriptor }) as Box<_>,
|
||||
);
|
||||
import
|
||||
.insert_intermediate(INTERMEDIATE_KEY, BabeIntermediate::<TestBlock> { epoch_descriptor });
|
||||
import.fork_choice = Some(ForkChoiceStrategy::LongestChain);
|
||||
let import_result = block_on(block_import.import_block(import, Default::default())).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user