Skip to content

Commit

Permalink
fix relaychain rpc address
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizdave97 committed Oct 2, 2023
1 parent 2430e76 commit c3e842d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions parachain/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use sc_cli::{
};
use sc_service::config::{BasePath, PrometheusConfig};
use sp_runtime::traits::AccountIdConversion;
use std::net::SocketAddr;

use crate::{
chain_spec,
Expand Down Expand Up @@ -336,6 +337,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 Expand Up @@ -379,6 +384,10 @@ impl CliConfiguration<Self> for RelayChainCli {
self.base.base.rpc_methods()
}

fn rpc_max_connections(&self) -> Result<u32> {
self.base.base.rpc_max_connections()
}

fn rpc_cors(&self, is_dev: bool) -> Result<Option<Vec<String>>> {
self.base.base.rpc_cors(is_dev)
}
Expand Down

0 comments on commit c3e842d

Please sign in to comment.