Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Synch chainspec path updates #320

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions collator/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down
28 changes: 8 additions & 20 deletions docs/develop/02_chain/04_fullnode.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have it now, it's called "peregrine"

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

Expand Down Expand Up @@ -101,34 +101,28 @@ 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
```

</TabItem>
<TabItem value="Peregrine">

```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
```

</TabItem>
Expand Down Expand Up @@ -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
```

</TabItem>
Expand All @@ -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
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,18 @@ 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 \
--collator \
-- \
--chain=polkadot \
--listen-addr=/ip4/0.0.0.0/tcp/30334 \
--base-path=$HOME/data/relay \
--execution=wasm
--base-path=$HOME/data/relay
```
</TabItem>

Expand All @@ -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
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,19 @@ 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 \
--collator \
-- \
--chain=polkadot \
--listen-addr=/ip4/0.0.0.0/tcp/30334 \
--base-path=/data/relay \
--execution=wasm
--base-path=/data/relay
```
</TabItem>

Expand All @@ -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
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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=* \
Expand All @@ -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
```
```
Loading