ImportBlock -> BlockImportParams (#3158)

This commit is contained in:
Pierre Krieger
2019-07-22 00:43:02 +02:00
committed by DemiMarie-parity
parent 4bbfaa9c8f
commit 2edeef5825
16 changed files with 53 additions and 53 deletions
+3 -3
View File
@@ -18,7 +18,7 @@
use client::{self, Client};
use consensus::{
ImportBlock, BlockImport, BlockOrigin, Error as ConsensusError,
BlockImportParams, BlockImport, BlockOrigin, Error as ConsensusError,
ForkChoiceStrategy,
};
use hash_db::Hasher;
@@ -64,7 +64,7 @@ impl<B, E, RA, Block> ClientExt<Block> for Client<B, E, Block, RA>
-> Result<(), ConsensusError>
{
let (header, extrinsics) = block.deconstruct();
let import = ImportBlock {
let import = BlockImportParams {
origin,
header,
justification: None,
@@ -85,7 +85,7 @@ impl<B, E, RA, Block> ClientExt<Block> for Client<B, E, Block, RA>
justification: Justification,
) -> Result<(), ConsensusError> {
let (header, extrinsics) = block.deconstruct();
let import = ImportBlock {
let import = BlockImportParams {
origin,
header,
justification: Some(justification),