Polkadot companion for #8043 (#2382)

* WIP

* WIP

* WIP

* Revert branch change

* CLEANUP

* "Update Substrate"

* Fix build

* Revert "Fix build"

This reverts commit 2dcc3f2a14d28febb84c2c35d682243bc03523a8.

* cargo update -p sp-io

Co-authored-by: parity-processbot <>
This commit is contained in:
Cecile Tongletandparity-processbot authored and GitHub committed 2021-02-17 10:12:34 +00:00
1 parent 27c7347b9b
commit 0771537a0b
3 files changed
+148 -141

No files matched your search

+139 -139
View File
File diff suppressed because it is too large. Load diff
+9 -1
View File
@@ -53,7 +53,7 @@ use std::sync::Arc;
use prometheus_endpoint::Registry;
use sc_executor::native_executor_instance;
use service::RpcHandlers;
use telemetry::TelemetryConnectionNotifier;
use telemetry::{TelemetryConnectionNotifier, TelemetrySpan};
pub use self::client::{AbstractClient, Client, ClientHandle, ExecuteWithClient, RuntimeApiCollection};
pub use chain_spec::{PolkadotChainSpec, KusamaChainSpec, WestendChainSpec, RococoChainSpec};
@@ -648,6 +648,9 @@ pub fn new_full<RuntimeApi, Executor>(
let availability_config = config.database.clone().try_into().map_err(Error::Availability)?;
let telemetry_span = TelemetrySpan::new();
let _telemetry_span_entered = telemetry_span.enter();
let (rpc_handlers, telemetry_connection_notifier) = service::spawn_tasks(service::SpawnTasksParams {
config,
backend: backend.clone(),
@@ -661,6 +664,7 @@ pub fn new_full<RuntimeApi, Executor>(
remote_blockchain: None,
network_status_sinks: network_status_sinks.clone(),
system_rpc_tx,
telemetry_span: Some(telemetry_span.clone()),
})?;
let (block_import, link_half, babe_link) = import_setup;
@@ -965,6 +969,9 @@ fn new_light<Runtime, Dispatch>(mut config: Configuration) -> Result<(
let rpc_extensions = polkadot_rpc::create_light(light_deps);
let telemetry_span = TelemetrySpan::new();
let _telemetry_span_entered = telemetry_span.enter();
let (rpc_handlers, telemetry_connection_notifier) = service::spawn_tasks(service::SpawnTasksParams {
on_demand: Some(on_demand),
remote_blockchain: Some(backend.remote_blockchain()),
@@ -978,6 +985,7 @@ fn new_light<Runtime, Dispatch>(mut config: Configuration) -> Result<(
network,
network_status_sinks,
system_rpc_tx,
telemetry_span: Some(telemetry_span.clone()),
})?;
network_starter.start_network();
-1
View File
@@ -199,7 +199,6 @@ pub fn node_config(
informant_output_format: Default::default(),
disable_log_reloading: false,
telemetry_handle: None,
telemetry_span: None,
}
}