diff --git a/collator/docker-compose.yml b/collator/docker-compose.yml index 779addb29..b0a0fde7b 100644 --- a/collator/docker-compose.yml +++ b/collator/docker-compose.yml @@ -3,7 +3,7 @@ services: collator: profiles: ["collator"] container_name: collator - image: "kiltprotocol/peregrine:1.0.0" + image: "kiltprotocol/kilt-node:latest" restart: unless-stopped user: "1000" ports: @@ -19,8 +19,6 @@ services: --rpc-cors=all --rpc-methods=unsafe --chain=spiritnet - --runtime=spiritnet - --execution=wasm --listen-addr=/ip4/0.0.0.0/tcp/30336 --name "name of collator" --base-path /data/db/parachain @@ -30,7 +28,6 @@ services: --listen-addr=/ip4/0.0.0.0/tcp/30333 --base-path /data/db/relay --chain=polkadot - --execution=wasm # ----- MONITORING ----- node-exporter: image: prom/node-exporter:latest diff --git a/docs/develop/02_chain/04_fullnode.md b/docs/develop/02_chain/04_fullnode.md index d056efcc4..689b37888 100644 --- a/docs/develop/02_chain/04_fullnode.md +++ b/docs/develop/02_chain/04_fullnode.md @@ -40,8 +40,8 @@ The KILT parachain accepts an additional parameter to select the environment to This can either be `peregrine` or `spiritnet`. Hence, to start a full node for the Spiritnet network, the parameter would be `--chain=spiritnet`. -Unfortunately, there is no hardcoded chain spec for the Peregrine network, so the full path of the chainspec file must be provided `--chain=/node/dev-specs/kilt-parachain/peregrine-kilt.json`. -Please refer to the [KILT node repository](https://github.com/KILTprotocol/kilt-node/blob/master/dev-specs/kilt-parachain/peregrine-kilt.json) or the [Docker image](https://hub.docker.com/r/kiltprotocol/kilt-node/tags) for more information. +Unfortunately, there is no hardcoded chain spec for the Peregrine network, so the full path of the chainspec file must be provided `--chain=/node/chainspecs/peregrine/peregrine-paseo.json`. +Please refer to the [KILT node repository](https://github.com/KILTprotocol/kilt-node/blob/develop/chainspecs/peregrine/peregrine-paseo.json) or the [Docker image](https://hub.docker.com/r/kiltprotocol/kilt-node/tags) for more information. ### Specify the Blockchain Storage Path @@ -101,16 +101,13 @@ values={[ ```bash ./target/release/kilt-parachain \ --chain=spiritnet \ - --runtime=spiritnet \ --rpc-port=9944 \ --rpc-cors=all \ --rpc-external \ --name="name of full node" \ - --execution=wasm \ --pruning archive \ -- \ - --chain=polkadot \ - --execution=wasm + --chain=polkadot ``` @@ -118,17 +115,14 @@ values={[ ```bash ./target/release/kilt-parachain \ - --chain=/node/dev-specs/kilt-parachain/peregrine-kilt.json \ - --runtime=peregrine \ + --chain=/node/chainspecs/peregrine/peregrine-paseo.json \ --rpc-port=9944 \ --rpc-cors=all \ --rpc-external \ --name="name of full node" \ - --execution=wasm \ --pruning archive \ -- \ - --chain=/node/dev-specs/kilt-parachain/peregrine-relay.json \ - --execution=wasm + --chain=/node/chainspecs/peregrine/peregrine-relay.json ``` @@ -167,17 +161,14 @@ values={[ docker run -v kilt-node-data:/data kiltprotocol/kilt-node:latest \ --base-path=/data/para \ --chain=spiritnet \ - --runtime=spiritnet \ --rpc-port=9944 \ --rpc-cors=all \ --rpc-external \ --name="name of full node" \ - --execution=wasm \ --pruning archive \ -- \ --base-path=/data/relay \ - --chain=polkadot \ - --execution=wasm + --chain=polkadot ``` @@ -186,18 +177,15 @@ docker run -v kilt-node-data:/data kiltprotocol/kilt-node:latest \ ```bash docker run -v kilt-node-data:/data kiltprotocol/kilt-node:latest \ --base-path=/data/para \ - --chain=/node/dev-specs/kilt-parachain/peregrine-kilt.json \ - --runtime=peregrine \ + --chain=/node/chainspecs/peregrine/peregrine-paseo.json \ --rpc-port=9944 \ --rpc-cors=all \ --rpc-external \ --name="name of full node" \ - --execution=wasm \ --pruning archive \ -- \ --base-path=/data/relay \ - --chain=/node/dev-specs/kilt-parachain/peregrine-relay.json \ - --execution=wasm + --chain=/node/chainspecs/peregrine/peregrine-relay.json ``` diff --git a/docs/participate/01_staking/01_become_a_collator/03_setup_node.md b/docs/participate/01_staking/01_become_a_collator/03_setup_node.md index d7d47eff5..682f84a80 100644 --- a/docs/participate/01_staking/01_become_a_collator/03_setup_node.md +++ b/docs/participate/01_staking/01_become_a_collator/03_setup_node.md @@ -73,8 +73,8 @@ The KILT parachain accepts an additional parameter to select the environment to This can either be `peregrine` or `spiritnet`. Hence, to start a collator node for the Spiritnet network, the parameter would be `--chain=spiritnet`. -Unfortunately, there is no hardcoded chain spec for the Peregrine network, so the full path of the chainspec file must be provided `--chain=/node/dev-specs/kilt-parachain/peregrine-kilt.json`. -Please refer to the [KILT node repository](https://github.com/KILTprotocol/kilt-node/blob/master/dev-specs/kilt-parachain/peregrine-kilt.json) or the [Docker image](https://hub.docker.com/r/kiltprotocol/kilt-node/tags) for more information. +Unfortunately, there is no hardcoded chain spec for the Peregrine network, so the full path of the chainspec file must be provided `--chain=/node/chainspecs/peregrine/peregrine-paseo.json`. +Please refer to the [KILT node repository](https://github.com/KILTprotocol/kilt-node/blob/develop/chainspecs/peregrine/peregrine-paseo.json) or the [Docker image](https://hub.docker.com/r/kiltprotocol/kilt-node/tags) for more information. ### Specify the Blockchain Storage Path @@ -152,7 +152,7 @@ In addition to the websocket, you need to expose the ports for p2p connections. In the the command above these are `30333` for the parachain and `30334` for the relaychain. Make sure you configure your firewall in a way that allows incoming and outgoing connections to these ports. -The Docker command will map the database files for the Relay Chain and parachain as well as the keystore directory to `~/data` on the host system using the flag `-v $HOME/data:/data`. +The Docker command will map the database files for the Relaychain and parachain as well as the keystore directory to `~/data` on the host system using the flag `-v $HOME/data:/data`. That way the blockchain database files are not lost when and if the Docker container is removed and can be mounted back on the next containers. The Docker container runs as an user with id 1000 and will try to access the mapped volume and the files it contains. diff --git a/docs/participate/01_staking/01_become_a_collator/_03_start_node_binary.mdx b/docs/participate/01_staking/01_become_a_collator/_03_start_node_binary.mdx index 58dde2037..55ece88db 100644 --- a/docs/participate/01_staking/01_become_a_collator/_03_start_node_binary.mdx +++ b/docs/participate/01_staking/01_become_a_collator/_03_start_node_binary.mdx @@ -15,12 +15,10 @@ Please select your target network: ```bash= ./target/release/kilt-parachain \ --chain=spiritnet \ - --runtime=spiritnet \ --rpc-port=9944 \ --rpc-cors=all \ --rpc-methods=unsafe \ --name="name of collator" \ - --execution=wasm \ --listen-addr=/ip4/0.0.0.0/tcp/30333 \ --base-path=$HOME/data/parachain \ --keystore-path=$HOME/data/keystore \ @@ -28,8 +26,7 @@ Please select your target network: -- \ --chain=polkadot \ --listen-addr=/ip4/0.0.0.0/tcp/30334 \ - --base-path=$HOME/data/relay \ - --execution=wasm + --base-path=$HOME/data/relay ``` @@ -38,22 +35,19 @@ Please select your target network: ```bash= ./target/release/kilt-parachain \ - --chain=./dev-specs/kilt-parachain/peregrine-kilt.json \ - --runtime=peregrine \ + --chain=./chainspecs/peregrine/peregrine-paseo.json \ --rpc-port=9944 \ --rpc-cors=all \ --rpc-methods=unsafe \ --name="name of collator" \ - --execution=wasm \ --listen-addr=/ip4/0.0.0.0/tcp/30333 \ --base-path=$HOME/data/parachain \ --keystore-path=$HOME/data/keystore \ --collator \ -- \ - --chain=./dev-specs/kilt-parachain/peregrine-relay.json \ + --chain=./chainspecs/peregrine/peregrine-relay.json \ --listen-addr=/ip4/0.0.0.0/tcp/30334 \ - --base-path=$HOME/data/relay \ - --execution=wasm + --base-path=$HOME/data/relay ``` diff --git a/docs/participate/01_staking/01_become_a_collator/_03_start_node_docker.mdx b/docs/participate/01_staking/01_become_a_collator/_03_start_node_docker.mdx index ec0966252..9c21ec4aa 100644 --- a/docs/participate/01_staking/01_become_a_collator/_03_start_node_docker.mdx +++ b/docs/participate/01_staking/01_become_a_collator/_03_start_node_docker.mdx @@ -16,13 +16,11 @@ Please select your target network: docker run -p 127.0.0.1:9944:9944 -p 30333:30333 -p 30334:30334 \ -v ~/data:/data kiltprotocol/kilt-node:latest \ --chain=spiritnet \ - --runtime=spiritnet \ --rpc-port=9944 \ --rpc-cors=all \ --rpc-methods=unsafe \ --unsafe-rpc-external \ --name="name of collator" \ - --execution=wasm \ --listen-addr=/ip4/0.0.0.0/tcp/30333 \ --base-path=/data/parachain \ --keystore-path=/data/keystore \ @@ -30,8 +28,7 @@ Please select your target network: -- \ --chain=polkadot \ --listen-addr=/ip4/0.0.0.0/tcp/30334 \ - --base-path=/data/relay \ - --execution=wasm + --base-path=/data/relay ``` @@ -41,23 +38,20 @@ Please select your target network: ```bash= docker run -p 127.0.0.1:9944:9944 -p 30333:30333 -p 30334:30334 \ -v ~/data:/data kiltprotocol/kilt-node:latest \ - --chain=/node/dev-specs/kilt-parachain/peregrine-kilt.json \ - --runtime=peregrine \ + --chain=/node/chainspecs/peregrine/peregrine-paseo.json \ --rpc-port=9944 \ --rpc-cors=all \ --rpc-methods=unsafe \ --unsafe-rpc-external \ --name="name of collator" \ - --execution=wasm \ --listen-addr=/ip4/0.0.0.0/tcp/30333 \ --base-path=/data/parachain \ --keystore-path=/data/keystore \ --collator \ -- \ - --chain=/node/dev-specs/kilt-parachain/peregrine-relay.json \ + --chain=/node/chainspecs/peregrine/peregrine-relay.json \ --listen-addr=/ip4/0.0.0.0/tcp/30334 \ - --base-path=/data/relay \ - --execution=wasm + --base-path=/data/relay ``` diff --git a/docs/participate/01_staking/02_advanced_collator_section/06_benchmarking.md b/docs/participate/01_staking/02_advanced_collator_section/06_benchmarking.md index 712fbd99f..f04700ef2 100644 --- a/docs/participate/01_staking/02_advanced_collator_section/06_benchmarking.md +++ b/docs/participate/01_staking/02_advanced_collator_section/06_benchmarking.md @@ -26,7 +26,6 @@ Below is an example of benchmarking for the the `balances` pallet. ./target/release/kilt-parachain \ benchmark \ --chain=spiritnet-dev \ - --execution=wasm \ --wasm-execution=Compiled \ --heap-pages=4096 \ --extrinsic=* \ @@ -37,4 +36,4 @@ Below is an example of benchmarking for the the `balances` pallet. ./runtimes/spiritnet/src/weights/pallet_balances.rs \ --template \ ./.maintain/weight-template.hbs -``` \ No newline at end of file +```