mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 18:25:41 +00:00
ImportBlock -> BlockImportParams (#3158)
This commit is contained in:
committed by
DemiMarie-parity
parent
4bbfaa9c8f
commit
2edeef5825
@@ -926,7 +926,7 @@ impl offchain::AuthorityKeyProvider for AuthorityKeyProvider {
|
||||
/// # use network::{config::DummyFinalityProofRequestBuilder, construct_simple_protocol};
|
||||
/// # use client::{self, LongestChain};
|
||||
/// # use consensus_common::import_queue::{BasicQueue, Verifier};
|
||||
/// # use consensus_common::{BlockOrigin, ImportBlock, well_known_cache_keys::Id as CacheKeyId};
|
||||
/// # use consensus_common::{BlockOrigin, BlockImportParams, well_known_cache_keys::Id as CacheKeyId};
|
||||
/// # use node_runtime::{GenesisConfig, RuntimeApi};
|
||||
/// # use std::sync::Arc;
|
||||
/// # use node_primitives::Block;
|
||||
@@ -944,7 +944,7 @@ impl offchain::AuthorityKeyProvider for AuthorityKeyProvider {
|
||||
/// # header: B::Header,
|
||||
/// # justification: Option<Justification>,
|
||||
/// # body: Option<Vec<B::Extrinsic>>,
|
||||
/// # ) -> Result<(ImportBlock<B>, Option<Vec<(CacheKeyId, Vec<u8>)>>), String> {
|
||||
/// # ) -> Result<(BlockImportParams<B>, Option<Vec<(CacheKeyId, Vec<u8>)>>), String> {
|
||||
/// # unimplemented!();
|
||||
/// # }
|
||||
/// # }
|
||||
|
||||
@@ -37,7 +37,7 @@ use service::{
|
||||
use network::{multiaddr, Multiaddr};
|
||||
use network::config::{NetworkConfiguration, TransportConfig, NodeKeyConfig, Secret, NonReservedPeerMode};
|
||||
use sr_primitives::generic::BlockId;
|
||||
use consensus::{ImportBlock, BlockImport};
|
||||
use consensus::{BlockImportParams, BlockImport};
|
||||
|
||||
/// Maximum duration of single wait call.
|
||||
const MAX_WAIT_TIME: Duration = Duration::from_secs(60 * 3);
|
||||
@@ -354,7 +354,7 @@ pub fn sync<F, B, E>(spec: FactoryChainSpec<F>, mut block_factory: B, mut extrin
|
||||
F: ServiceFactory,
|
||||
F::FullService: Future<Item=(), Error=()>,
|
||||
F::LightService: Future<Item=(), Error=()>,
|
||||
B: FnMut(&SyncService<F::FullService>) -> ImportBlock<F::Block>,
|
||||
B: FnMut(&SyncService<F::FullService>) -> BlockImportParams<F::Block>,
|
||||
E: FnMut(&SyncService<F::FullService>) -> FactoryExtrinsic<F>,
|
||||
{
|
||||
const NUM_FULL_NODES: usize = 10;
|
||||
|
||||
Reference in New Issue
Block a user