mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 15:57:55 +00:00
node-template: add aura to light block import pipeline (#7595)
added aura to block import pipeline
This commit is contained in:
@@ -239,9 +239,14 @@ pub fn new_light(config: Configuration) -> Result<TaskManager, ServiceError> {
|
|||||||
select_chain.clone(),
|
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, _, _>(
|
let import_queue = sc_consensus_aura::import_queue::<_, _, _, AuraPair, _, _>(
|
||||||
sc_consensus_aura::slot_duration(&*client)?,
|
sc_consensus_aura::slot_duration(&*client)?,
|
||||||
grandpa_block_import.clone(),
|
aura_block_import,
|
||||||
Some(Box::new(grandpa_block_import)),
|
Some(Box::new(grandpa_block_import)),
|
||||||
client.clone(),
|
client.clone(),
|
||||||
InherentDataProviders::new(),
|
InherentDataProviders::new(),
|
||||||
|
|||||||
Reference in New Issue
Block a user