diff --git a/node/cli/src/command.rs b/node/cli/src/command.rs index ed0519f9a..c9cfc26ba 100644 --- a/node/cli/src/command.rs +++ b/node/cli/src/command.rs @@ -16,6 +16,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +use crate::{Cli, RelayChainCli, Subcommand}; use bifrost_service::{self as service, IdentifyVariant}; use cumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions; use cumulus_primitives_core::ParaId; @@ -27,8 +28,7 @@ use sc_cli::{ }; use sc_service::config::{BasePath, PrometheusConfig}; use sp_runtime::traits::{AccountIdConversion, HashingFor}; - -use crate::{Cli, RelayChainCli, Subcommand}; +use std::net::SocketAddr; fn get_exec_name() -> Option { std::env::current_exe() @@ -612,6 +612,14 @@ impl CliConfiguration for RelayChainCli { self.base.base.rpc_methods() } + fn rpc_max_connections(&self) -> Result { + self.base.base.rpc_max_connections() + } + + fn rpc_addr(&self, default_listen_port: u16) -> Result> { + self.base.base.rpc_addr(default_listen_port) + } + fn rpc_cors(&self, is_dev: bool) -> Result>> { self.base.base.rpc_cors(is_dev) } diff --git a/node/service/src/chain_spec/bifrost_polkadot.rs b/node/service/src/chain_spec/bifrost_polkadot.rs index 278a8b4e8..ce9b268f8 100644 --- a/node/service/src/chain_spec/bifrost_polkadot.rs +++ b/node/service/src/chain_spec/bifrost_polkadot.rs @@ -17,7 +17,6 @@ // along with this program. If not, see . use crate::chain_spec::{get_account_id_from_seed, get_from_seed, RelayExtensions}; -use bifrost_kusama_runtime::constants::currency::Perbill; use bifrost_parachain_staking::{InflationInfo, Range}; use bifrost_polkadot_runtime::{ constants::currency::DOLLARS, AccountId, Balance, BlockNumber, SS58Prefix, @@ -36,7 +35,7 @@ use hex_literal::hex; use sc_chain_spec::Properties; use sc_service::ChainType; use sp_core::{crypto::UncheckedInto, sr25519, H160, U256}; -use sp_runtime::{FixedU128, Percent}; +use sp_runtime::{FixedU128, Perbill, Percent}; use std::{collections::BTreeMap, str::FromStr}; const DEFAULT_PROTOCOL_ID: &str = "bifrost_polkadot";