From 0e8e8afd22205d8b88423ef760a53588e07678b8 Mon Sep 17 00:00:00 2001 From: Joshy Orndorff Date: Wed, 2 Sep 2020 16:49:16 -0400 Subject: [PATCH 1/2] Use complete import pipeline --- bin/node-template/node/src/service.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/node-template/node/src/service.rs b/bin/node-template/node/src/service.rs index 5984d67322333..52d7850c275a5 100644 --- a/bin/node-template/node/src/service.rs +++ b/bin/node-template/node/src/service.rs @@ -27,7 +27,7 @@ pub fn new_partial(config: &Configuration) -> Result, sc_transaction_pool::FullPool, ( - sc_finality_grandpa::GrandpaBlockImport, + sc_consensus_aura::AuraBlockImport, AuraPair>, sc_finality_grandpa::LinkHalf ) >, ServiceError> { @@ -56,7 +56,7 @@ pub fn new_partial(config: &Configuration) -> Result( sc_consensus_aura::slot_duration(&*client)?, - aura_block_import, + aura_block_import.clone(), Some(Box::new(grandpa_block_import.clone())), None, client.clone(), @@ -69,7 +69,7 @@ pub fn new_partial(config: &Configuration) -> Result Date: Wed, 2 Sep 2020 15:21:57 -0700 Subject: [PATCH 2/2] Line length --- bin/node-template/node/src/service.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/node-template/node/src/service.rs b/bin/node-template/node/src/service.rs index 52d7850c275a5..8fa935c375021 100644 --- a/bin/node-template/node/src/service.rs +++ b/bin/node-template/node/src/service.rs @@ -27,7 +27,12 @@ pub fn new_partial(config: &Configuration) -> Result, sc_transaction_pool::FullPool, ( - sc_consensus_aura::AuraBlockImport, AuraPair>, + sc_consensus_aura::AuraBlockImport< + Block, + FullClient, + sc_finality_grandpa::GrandpaBlockImport, + AuraPair + >, sc_finality_grandpa::LinkHalf ) >, ServiceError> {