From 3ed4dbb6a9f8526bba902f56bd220d68e3ed6aa4 Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Tue, 12 Sep 2023 14:11:39 +1200 Subject: [PATCH] fix relaychain rpc external (#2613) --- node/cli/src/command.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/node/cli/src/command.rs b/node/cli/src/command.rs index ba0efff4a0..33e392a4e1 100644 --- a/node/cli/src/command.rs +++ b/node/cli/src/command.rs @@ -19,6 +19,8 @@ // Disable the following lints #![allow(clippy::borrowed_box)] +use std::net::SocketAddr; + use crate::cli::{Cli, RelayChainCli, Subcommand}; use cumulus_primitives_core::ParaId; use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; @@ -515,6 +517,10 @@ impl CliConfiguration for RelayChainCli { .or_else(|| self.base_path.clone().map(Into::into))) } + fn rpc_addr(&self, default_listen_port: u16) -> Result> { + self.base.base.rpc_addr(default_listen_port) + } + fn prometheus_config( &self, default_listen_port: u16,