Skip to content

Commit

Permalink
Default ports
Browse files Browse the repository at this point in the history
Relay chain default rpc port diffrent from parachain default port
Docker example in Readme verified to work
Auto reformat
  • Loading branch information
simonsso committed Mar 13, 2024
1 parent f2b44f9 commit 2591568
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ cargo build --release -p nodle-parachain && polkadot-launch launch.json
## With docker

1. Build the image: `docker build -t nodle/chain -f ./Dockerfile .`.
2. Run it: `docker run -v /path/to/local/repertory:/data -p 9944:9944 -it nodle/chain`.
2. Run it: `docker run -v /path/to/local/repertory:/data -p 9944:9944 -it nodle/chain --chain=eden-testing --base-path=/data`.
for instance as:
`docker run -v /mnt/d1/.local/share/nodle-parachain-2.2.2:/data -p 9944:9944 -p 9933:9933 -p30333:30333 -it nodle/chain --chain=eden-testing --base-path=/data --rpc-methods=safe --rpc-cors all --rpc-external -- --rpc-external`
4 changes: 4 additions & 0 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ impl DefaultConfigurationValues for RelayChainCli {
fn prometheus_listen_port() -> u16 {
9616
}

fn rpc_listen_port() -> u16 {
9933
}
}

impl CliConfiguration<Self> for RelayChainCli {
Expand Down
2 changes: 1 addition & 1 deletion node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use std::{sync::Arc, time::Duration};

use cumulus_client_cli::CollatorOptions;
// Local Runtime Types
use runtime_eden::{RuntimeApi};
use runtime_eden::RuntimeApi;

use polkadot_primitives::{Block, Hash};

Expand Down
3 changes: 2 additions & 1 deletion pallets/sponsorship/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ use frame_support::{
dispatch::{DispatchInfo, DispatchResult, GetDispatchInfo, Pays, PostDispatchInfo},
traits::{
Currency,
ExistenceRequirement::{AllowDeath, KeepAlive}, InstanceFilter, IsSubType, IsType, OriginTrait, ReservableCurrency,
ExistenceRequirement::{AllowDeath, KeepAlive},
InstanceFilter, IsSubType, IsType, OriginTrait, ReservableCurrency,
},
};
use pallet_transaction_payment::OnChargeTransaction;
Expand Down

0 comments on commit 2591568

Please sign in to comment.