From a17b173a878314a03d291ccb3fa794e7852a6c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= <bkchr@users.noreply.github.com> Date: Mon, 21 Feb 2022 11:34:23 +0100 Subject: [PATCH] Fix relay chain node name (#1008) Before this fix the relay chain node name was always a random generated, because we did not had implemented all the required methods of the `CliConfiguration` trait. --- cumulus/parachain-template/node/src/command.rs | 4 ++++ cumulus/polkadot-parachains/src/command.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cumulus/parachain-template/node/src/command.rs b/cumulus/parachain-template/node/src/command.rs index f6bbef018c1..2d62cf4428b 100644 --- a/cumulus/parachain-template/node/src/command.rs +++ b/cumulus/parachain-template/node/src/command.rs @@ -432,4 +432,8 @@ impl CliConfiguration<Self> for RelayChainCli { ) -> Result<Option<sc_telemetry::TelemetryEndpoints>> { self.base.base.telemetry_endpoints(chain_spec) } + + fn node_name(&self) -> Result<String> { + self.base.base.node_name() + } } diff --git a/cumulus/polkadot-parachains/src/command.rs b/cumulus/polkadot-parachains/src/command.rs index 8ebe96a1d50..594d99932aa 100644 --- a/cumulus/polkadot-parachains/src/command.rs +++ b/cumulus/polkadot-parachains/src/command.rs @@ -714,4 +714,8 @@ impl CliConfiguration<Self> for RelayChainCli { ) -> Result<Option<sc_telemetry::TelemetryEndpoints>> { self.base.base.telemetry_endpoints(chain_spec) } + + fn node_name(&self) -> Result<String> { + self.base.base.node_name() + } } -- GitLab