Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Companion of paritytech/substrate#10463, !
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Sep 14, 2022
1 parent ab8ec9c commit 9ef5b5a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions node/service/src/chain_spec/pangolin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ pub fn genesis_config() -> ChainSpec {
.expect("Pangolin telemetry url is valid; qed"),
),
Some(DEFAULT_PROTOCOL_ID),
None,
Some(properties()),
Default::default(),
)
Expand Down Expand Up @@ -501,6 +502,7 @@ pub fn development_config() -> ChainSpec {
vec![],
None,
Some(DEFAULT_PROTOCOL_ID),
None,
Some(properties()),
Default::default(),
)
Expand Down Expand Up @@ -707,6 +709,7 @@ pub fn local_testnet_config() -> ChainSpec {
],
None,
Some(DEFAULT_PROTOCOL_ID),
None,
Some(properties()),
Default::default(),
)
Expand Down
2 changes: 2 additions & 0 deletions node/service/src/chain_spec/pangoro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ pub fn genesis_config() -> ChainSpec {
.expect("Pangoro telemetry url is valid; qed"),
),
Some(DEFAULT_PROTOCOL_ID),
None,
Some(properties()),
Default::default(),
)
Expand Down Expand Up @@ -315,6 +316,7 @@ pub fn development_config() -> ChainSpec {
vec![],
None,
Some(DEFAULT_PROTOCOL_ID),
None,
Some(properties()),
Default::default(),
)
Expand Down
1 change: 1 addition & 0 deletions node/service/src/chain_spec/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ pub fn development_config() -> ChainSpec {
None,
None,
None,
None,
)
}

Expand Down
10 changes: 9 additions & 1 deletion node/service/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,15 @@ where
let name = config.network.node_name.clone();
let prometheus_registry = config.prometheus_registry().cloned();
let auth_disc_publish_non_global_ips = config.network.allow_non_globals_in_dht;
let grandpa_protocol_name = sc_finality_grandpa::protocol_standard_name(
&client.block_hash(0).ok().flatten().expect("Genesis block exists; qed"),
&config.chain_spec,
);

config.network.extra_sets.push(sc_finality_grandpa::grandpa_peers_set_config());
config
.network
.extra_sets
.push(sc_finality_grandpa::grandpa_peers_set_config(grandpa_protocol_name.clone()));
// config.network.extra_sets.push(beefy_gadget::beefy_peers_set_config());

let backoff_authoring_blocks =
Expand Down Expand Up @@ -403,6 +410,7 @@ where
keystore,
local_role: role,
telemetry: telemetry.as_ref().map(|x| x.handle()),
protocol_name: grandpa_protocol_name,
},
link: grandpa_link,
network,
Expand Down

0 comments on commit 9ef5b5a

Please sign in to comment.