Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix light clients in manual seal nodes (#5955)
Browse files Browse the repository at this point in the history
* WIP

* WIP
  • Loading branch information
JoshOrndorff authored May 8, 2020
1 parent b096036 commit f2cc629
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions client/consensus/manual-seal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ pub use self::{
error::Error,
rpc::{EngineCommand, CreatedBlock},
};
use sc_client_api::{TransactionFor, Backend};

/// The verifier for the manual seal engine; instantly finalizes.
struct ManualSealVerifier;
Expand All @@ -66,17 +65,17 @@ impl<B: BlockT> Verifier<B> for ManualSealVerifier {
}

/// Instantiate the import queue for the manual seal consensus engine.
pub fn import_queue<Block, B>(
block_import: BoxBlockImport<Block, TransactionFor<B, Block>>,
pub fn import_queue<Block, Transaction>(
block_import: BoxBlockImport<Block, Transaction>,
spawner: &impl sp_core::traits::SpawnBlocking,
) -> BasicQueue<Block, TransactionFor<B, Block>>
) -> BasicQueue<Block, Transaction>
where
Block: BlockT,
B: Backend<Block> + 'static,
Transaction: Send + Sync + 'static,
{
BasicQueue::new(
ManualSealVerifier,
Box::new(block_import),
block_import,
None,
None,
spawner,
Expand Down

0 comments on commit f2cc629

Please sign in to comment.