Companion for substrate#8643 (#2908)

* Companion for substrate#8643

* Update node/service/src/lib.rs

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Pierre Krieger
2021-04-20 16:07:37 +02:00
committed by GitHub
parent 6fe5b46f8d
commit a7d678179a
2 changed files with 186 additions and 180 deletions
+180 -179
View File
File diff suppressed because it is too large Load Diff
+6 -1
View File
@@ -714,6 +714,7 @@ pub fn new_full<RuntimeApi, Executor>(
let prometheus_registry = config.prometheus_registry().cloned(); let prometheus_registry = config.prometheus_registry().cloned();
let shared_voter_state = rpc_setup; let shared_voter_state = rpc_setup;
let auth_disc_publish_non_global_ips = config.network.allow_non_globals_in_dht;
// Note: GrandPa is pushed before the Polkadot-specific protocols. This doesn't change // Note: GrandPa is pushed before the Polkadot-specific protocols. This doesn't change
// anything in terms of behaviour, but makes the logs more consistent with the other // anything in terms of behaviour, but makes the logs more consistent with the other
@@ -826,7 +827,11 @@ pub fn new_full<RuntimeApi, Executor>(
Event::Dht(e) => Some(e), Event::Dht(e) => Some(e),
_ => None, _ => None,
}}); }});
let (worker, service) = sc_authority_discovery::new_worker_and_service( let (worker, service) = sc_authority_discovery::new_worker_and_service_with_config(
sc_authority_discovery::WorkerConfig {
publish_non_global_ips: auth_disc_publish_non_global_ips,
..Default::default()
},
client.clone(), client.clone(),
network.clone(), network.clone(),
Box::pin(dht_event_stream), Box::pin(dht_event_stream),