Skip to content

Commit f2cc629

Browse files
authored
Fix light clients in manual seal nodes (paritytech#5955)
* WIP * WIP
1 parent b096036 commit f2cc629

File tree

1 file changed

+5
-6
lines changed
  • client/consensus/manual-seal/src

1 file changed

+5
-6
lines changed

client/consensus/manual-seal/src/lib.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ pub use self::{
4242
error::Error,
4343
rpc::{EngineCommand, CreatedBlock},
4444
};
45-
use sc_client_api::{TransactionFor, Backend};
4645

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

6867
/// Instantiate the import queue for the manual seal consensus engine.
69-
pub fn import_queue<Block, B>(
70-
block_import: BoxBlockImport<Block, TransactionFor<B, Block>>,
68+
pub fn import_queue<Block, Transaction>(
69+
block_import: BoxBlockImport<Block, Transaction>,
7170
spawner: &impl sp_core::traits::SpawnBlocking,
72-
) -> BasicQueue<Block, TransactionFor<B, Block>>
71+
) -> BasicQueue<Block, Transaction>
7372
where
7473
Block: BlockT,
75-
B: Backend<Block> + 'static,
74+
Transaction: Send + Sync + 'static,
7675
{
7776
BasicQueue::new(
7877
ManualSealVerifier,
79-
Box::new(block_import),
78+
block_import,
8079
None,
8180
None,
8281
spawner,

0 commit comments

Comments
 (0)