From 0373c9e7bd5eae3a527be16db2807fb9ebf2261d Mon Sep 17 00:00:00 2001 From: Aaro Altonen Date: Wed, 29 Mar 2023 15:40:21 +0300 Subject: [PATCH] Companion for https://github.com/paritytech/substrate/pull/13725 --- client/relay-chain-minimal-node/Cargo.toml | 1 + client/relay-chain-minimal-node/src/network.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/client/relay-chain-minimal-node/Cargo.toml b/client/relay-chain-minimal-node/Cargo.toml index 7c1c8621d36..11918a4c958 100644 --- a/client/relay-chain-minimal-node/Cargo.toml +++ b/client/relay-chain-minimal-node/Cargo.toml @@ -21,6 +21,7 @@ sc-network = { git = "https://github.com/paritytech/substrate", branch = "master sc-network-common = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-tracing = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-utils = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-consensus-babe = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/client/relay-chain-minimal-node/src/network.rs b/client/relay-chain-minimal-node/src/network.rs index 4dff55a65de..90112c35dda 100644 --- a/client/relay-chain-minimal-node/src/network.rs +++ b/client/relay-chain-minimal-node/src/network.rs @@ -26,6 +26,7 @@ use sc_network::{ use sc_network_common::{role::Roles, sync::message::BlockAnnouncesHandshake}; use sc_service::{error::Error, Configuration, NetworkStarter, SpawnTaskHandle}; +use sc_utils::mpsc::tracing_unbounded; use std::{iter, sync::Arc}; @@ -49,6 +50,7 @@ pub(crate) fn build_collator_network( genesis_hash, ); + let (tx, _rx) = tracing_unbounded("mpsc_syncing_engine_protocol", 100_000); let network_params = sc_network::config::Params:: { role: config.role.clone(), executor: { @@ -64,6 +66,7 @@ pub(crate) fn build_collator_network( metrics_registry: config.prometheus_config.as_ref().map(|config| config.registry.clone()), block_announce_config, request_response_protocol_configs: Vec::new(), + tx, }; let network_worker = sc_network::NetworkWorker::new(network_params)?;