From 02b6611ec2d48d4a1e78cb4f8041258e56cc8fc1 Mon Sep 17 00:00:00 2001 From: Gustavo Gonzalez Date: Fri, 19 Jul 2024 12:27:43 +0200 Subject: [PATCH] Add the option to sync faster with Rococo to the docs (#249) * add sync fast-unsafe for Rococo * fix spelling * add descriptions for datadir path and rococo chainspec --- docs/modules/ROOT/pages/index.adoc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc index 3d03f1b..ea76096 100644 --- a/docs/modules/ROOT/pages/index.adoc +++ b/docs/modules/ROOT/pages/index.adoc @@ -53,7 +53,7 @@ cargo build --release ./target/release/parachain-template-node build-spec --chain plain-parachain-chainspec.json --disable-default-bootnode --raw > raw-parachain-chainspec.json ``` -* Run two nodes and wait till it syncs with the Rococo relay chain (it may take up to two days to sync it): +* Run two nodes and wait until it syncs with the Rococo relay chain. This can take a fairly long time(up to 2 days), so we can use the `fast-unsafe` flag to make the process faster since we are on a testnet(~ 3 hours). `fast` downloads the blocks without executing the transactions, and `unsafe` skips downloading the state proofs(which we are ok with since it is Rococo). + ```bash ./target/release/parachain-template-node \ @@ -68,7 +68,8 @@ cargo build --release --execution wasm \ --chain \ --port 30343 \ - --rpc-port 9977 + --rpc-port 9977 \ + --sync fast-unsafe ``` + ```bash @@ -84,8 +85,11 @@ cargo build --release --execution wasm \ --chain \ --port 30343 \ - --rpc-port 9977 + --rpc-port 9977 \ + --sync fast-unsafe ``` +** `` is where the downloaded chain state will be stored. It can be any folder on your computer. +** `` is where your Rococo chainspec is stored. You can download this file from the link:https://github.com/paritytech/polkadot-sdk/blob/release-polkadot-v1.10.0/polkadot/node/service/chain-specs/rococo.jsonofficial[official Polkadot sdk repository]. * Register a parathread: