fn import_block -> fn block_import_params in SimpleSlotWorker (#3647)

This commit is contained in:
Weiliang Li
2019-09-19 23:49:24 +09:00
committed by André Silva
parent 0ed8d40b88
commit d105d3f3a1
3 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -245,7 +245,7 @@ impl<H, B, C, E, I, P, Error, SO> slots::SimpleSlotWorker<B> for AuraWorker<C, E
]
}
fn import_block(&self) -> Box<dyn Fn(
fn block_import_params(&self) -> Box<dyn Fn(
B::Header,
&B::Hash,
Vec<B::Extrinsic>,
@@ -541,7 +541,7 @@ impl<B: BlockT, C, P, T> Verifier<B> for AuraVerifier<C, P, T> where
_ => None,
});
let import_block = BlockImportParams {
let block_import_params = BlockImportParams {
origin,
header: pre_header,
post_digests: vec![seal],
@@ -552,7 +552,7 @@ impl<B: BlockT, C, P, T> Verifier<B> for AuraVerifier<C, P, T> where
fork_choice: ForkChoiceStrategy::LongestChain,
};
Ok((import_block, maybe_keys))
Ok((block_import_params, maybe_keys))
}
CheckedHeader::Deferred(a, b) => {
debug!(target: "aura", "Checking {:?} failed; {:?}, {:?}.", hash, a, b);