From f5b906a0ebdd33acc08fe944b75034678a9a2cb3 Mon Sep 17 00:00:00 2001 From: 1gn0r4nd <1gn0r4nd@gmail.com> Date: Sun, 21 Jul 2024 22:59:53 -0300 Subject: [PATCH 1/2] CLI parameter `--execution` has no effect anymore and will be removed in the future! Adding block and state pruning for the relay chain -- https://wiki.polkadot.network/docs/build-guides-template-basic#running-your-collator --- .../01_become_a_collator/_03_start_node_binary.mdx | 8 ++++---- .../01_become_a_collator/_03_start_node_docker.mdx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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..912c4a871 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 @@ -20,7 +20,6 @@ Please select your target network: --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 \ @@ -29,7 +28,8 @@ Please select your target network: --chain=polkadot \ --listen-addr=/ip4/0.0.0.0/tcp/30334 \ --base-path=$HOME/data/relay \ - --execution=wasm + --blocks-pruning 256 \ + --state-pruning 256 ``` @@ -44,7 +44,6 @@ Please select your target network: --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 \ @@ -53,7 +52,8 @@ Please select your target network: --chain=./dev-specs/kilt-parachain/peregrine-relay.json \ --listen-addr=/ip4/0.0.0.0/tcp/30334 \ --base-path=$HOME/data/relay \ - --execution=wasm + --blocks-pruning 256 \ + --state-pruning 256 ``` 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..5fe3053db 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 @@ -22,7 +22,6 @@ Please select your target network: --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 \ @@ -31,7 +30,8 @@ Please select your target network: --chain=polkadot \ --listen-addr=/ip4/0.0.0.0/tcp/30334 \ --base-path=/data/relay \ - --execution=wasm + --blocks-pruning 256 \ + --state-pruning 256 ``` @@ -48,7 +48,6 @@ Please select your target network: --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 \ @@ -57,7 +56,8 @@ Please select your target network: --chain=/node/dev-specs/kilt-parachain/peregrine-relay.json \ --listen-addr=/ip4/0.0.0.0/tcp/30334 \ --base-path=/data/relay \ - --execution=wasm + --blocks-pruning 256 \ + --state-pruning 256 ``` From 14a734c4d81e93a69a43ea7cd8124daf31976336 Mon Sep 17 00:00:00 2001 From: 1gn0r4nd <1gn0r4nd@gmail.com> Date: Mon, 22 Jul 2024 07:28:00 +0000 Subject: [PATCH 2/2] Removed the section that states we must use --execution=wasm since it's no longer a working flag --- .../01_staking/01_become_a_collator/03_setup_node.md | 7 ------- 1 file changed, 7 deletions(-) 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..376829c83 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 @@ -58,13 +58,6 @@ You should be the only one able to call the RPC endpoint. For a secure setup, follow the instructions in the previous section about [generating the session keys](./04_session_keys.md). ::: -### WASM Runtime Execution - -A KILT collator node should use the `--execution=wasm` parameter for both the Relay Chain and parachain collation. -The alternative to WASM runtime execution is native runtime execution, which might be faster but can, in some cases, deviate from the WASM execution logic and result in a different state. -When this happens, the collator node will crash and will stop synchronizing with the network and stop producing blocks. -Since the WASM runtime logic is part of the blockchain state itself and hence represents the single source of truth, all nodes should execute the WASM version of the runtime logic. - ### Specify the Right Chainspec The `--chain` parameter indicates which blockchain the KILT collator node will join.