Skip to content

Commit

Permalink
fix relaychain rpc external (#2613)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Sep 12, 2023
1 parent 2255861 commit 3ed4dbb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -515,6 +517,10 @@ impl CliConfiguration<Self> for RelayChainCli {
.or_else(|| self.base_path.clone().map(Into::into)))
}

fn rpc_addr(&self, default_listen_port: u16) -> Result<Option<SocketAddr>> {
self.base.base.rpc_addr(default_listen_port)
}

fn prometheus_config(
&self,
default_listen_port: u16,
Expand Down

0 comments on commit 3ed4dbb

Please sign in to comment.