Skip to content

Commit

Permalink
Connect networking to grandpa
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Jan 26, 2021
1 parent 79212d5 commit 71cea88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node/cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pub fn new_partial(config: &Configuration) -> Result<sc_service::PartialComponen

/// Creates a full service from the configuration.
pub fn new_full_base(
config: Configuration,
mut config: Configuration,
enable_dev_signer: bool,
with_startup_data: impl FnOnce(
&sc_consensus_aura::AuraBlockImport<
Expand Down Expand Up @@ -226,6 +226,8 @@ pub fn new_full_base(
(rpc_extensions_builder, rpc_setup)
};

config.network.extra_sets.push(sc_finality_grandpa::grandpa_peers_set_config());

sc_service::spawn_tasks(sc_service::SpawnTasksParams {
config,
backend: backend.clone(),
Expand Down

0 comments on commit 71cea88

Please sign in to comment.