From 53c0ec904fe5b2dbe69d164fd85c57a673d94d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= 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. --- parachain-template/node/src/command.rs | 4 ++++ polkadot-parachains/src/command.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/parachain-template/node/src/command.rs b/parachain-template/node/src/command.rs index f6bbef018c..2d62cf4428 100644 --- a/parachain-template/node/src/command.rs +++ b/parachain-template/node/src/command.rs @@ -432,4 +432,8 @@ impl CliConfiguration for RelayChainCli { ) -> Result> { self.base.base.telemetry_endpoints(chain_spec) } + + fn node_name(&self) -> Result { + self.base.base.node_name() + } } diff --git a/polkadot-parachains/src/command.rs b/polkadot-parachains/src/command.rs index 8ebe96a1d5..594d99932a 100644 --- a/polkadot-parachains/src/command.rs +++ b/polkadot-parachains/src/command.rs @@ -714,4 +714,8 @@ impl CliConfiguration for RelayChainCli { ) -> Result> { self.base.base.telemetry_endpoints(chain_spec) } + + fn node_name(&self) -> Result { + self.base.base.node_name() + } }