mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-22 19:56:20 +00:00
node-template: add aura to light block import pipeline (#7595)
added aura to block import pipeline
This commit is contained in:
1 parent
3e6a26c329
commit
4885992d7b
1 file changed
+6
-1
@@ -239,9 +239,14 @@ pub fn new_light(config: Configuration) -> Result<TaskManager, ServiceError> {
|
||||
select_chain.clone(),
|
||||
)?;
|
||||
|
||||
let aura_block_import = sc_consensus_aura::AuraBlockImport::<_, _, _, AuraPair>::new(
|
||||
grandpa_block_import.clone(),
|
||||
client.clone(),
|
||||
);
|
||||
|
||||
let import_queue = sc_consensus_aura::import_queue::<_, _, _, AuraPair, _, _>(
|
||||
sc_consensus_aura::slot_duration(&*client)?,
|
||||
grandpa_block_import.clone(),
|
||||
aura_block_import,
|
||||
Some(Box::new(grandpa_block_import)),
|
||||
client.clone(),
|
||||
InherentDataProviders::new(),
|
||||
|
||||
Reference in new issue
Block a user