Skip to content

Commit 3ed4dbb

Browse files
authored
fix relaychain rpc external (#2613)
1 parent 2255861 commit 3ed4dbb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: node/cli/src/command.rs

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
// Disable the following lints
2020
#![allow(clippy::borrowed_box)]
2121

22+
use std::net::SocketAddr;
23+
2224
use crate::cli::{Cli, RelayChainCli, Subcommand};
2325
use cumulus_primitives_core::ParaId;
2426
use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};
@@ -515,6 +517,10 @@ impl CliConfiguration<Self> for RelayChainCli {
515517
.or_else(|| self.base_path.clone().map(Into::into)))
516518
}
517519

520+
fn rpc_addr(&self, default_listen_port: u16) -> Result<Option<SocketAddr>> {
521+
self.base.base.rpc_addr(default_listen_port)
522+
}
523+
518524
fn prometheus_config(
519525
&self,
520526
default_listen_port: u16,

0 commit comments

Comments
 (0)