mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 18:01:04 +00:00
@@ -42,7 +42,6 @@ pub use self::{
|
|||||||
error::Error,
|
error::Error,
|
||||||
rpc::{EngineCommand, CreatedBlock},
|
rpc::{EngineCommand, CreatedBlock},
|
||||||
};
|
};
|
||||||
use sc_client_api::{TransactionFor, Backend};
|
|
||||||
|
|
||||||
/// The verifier for the manual seal engine; instantly finalizes.
|
/// The verifier for the manual seal engine; instantly finalizes.
|
||||||
struct ManualSealVerifier;
|
struct ManualSealVerifier;
|
||||||
@@ -66,17 +65,17 @@ impl<B: BlockT> Verifier<B> for ManualSealVerifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Instantiate the import queue for the manual seal consensus engine.
|
/// Instantiate the import queue for the manual seal consensus engine.
|
||||||
pub fn import_queue<Block, B>(
|
pub fn import_queue<Block, Transaction>(
|
||||||
block_import: BoxBlockImport<Block, TransactionFor<B, Block>>,
|
block_import: BoxBlockImport<Block, Transaction>,
|
||||||
spawner: &impl sp_core::traits::SpawnBlocking,
|
spawner: &impl sp_core::traits::SpawnBlocking,
|
||||||
) -> BasicQueue<Block, TransactionFor<B, Block>>
|
) -> BasicQueue<Block, Transaction>
|
||||||
where
|
where
|
||||||
Block: BlockT,
|
Block: BlockT,
|
||||||
B: Backend<Block> + 'static,
|
Transaction: Send + Sync + 'static,
|
||||||
{
|
{
|
||||||
BasicQueue::new(
|
BasicQueue::new(
|
||||||
ManualSealVerifier,
|
ManualSealVerifier,
|
||||||
Box::new(block_import),
|
block_import,
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
spawner,
|
spawner,
|
||||||
|
|||||||
Reference in New Issue
Block a user