Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect networking to grandpa #285

Merged
merged 1 commit into from
Jan 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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