From 7ec98e1e16e09dfc94177682fbe2f16d6fd01a03 Mon Sep 17 00:00:00 2001 From: yooml Date: Tue, 10 Dec 2024 11:20:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=F0=9F=90=9B=20add=20listen=20port?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- node/cli/src/command.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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) } From cb2bc77c6b144ad276c0800071e02ff3cbaaeff2 Mon Sep 17 00:00:00 2001 From: yooml Date: Tue, 10 Dec 2024 14:25:11 +0800 Subject: [PATCH 2/2] =?UTF-8?q?style:=20=F0=9F=92=84=20compilation=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- node/service/src/chain_spec/bifrost_polkadot.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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";