From 5393628765edd756a8713add0d0d103c699916b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Fri, 14 Feb 2020 11:37:02 +0100 Subject: [PATCH 1/3] Update README to fix the startup --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 48c88c21cae..1d8b5c9f254 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,11 @@ A planned Polkadot collator for the parachain. 4. Run the collator: - `cargo run --release -p cumulus-test-parachain-collator -- --base-path cumulus_collator_path --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/PEER_ID --bootnodes /ip4/127.0.0.1/tcp/50666/p2p/PEER_ID` + `cargo run --release -p cumulus-test-parachain-collator -- --base-path cumulus_collator_path -- --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/PEER_ID --bootnodes /ip4/127.0.0.1/tcp/50666/p2p/PEER_ID` `PEER_ID_${NAME}` needs to be replaced with the peer id of the polkadot validator that uses `${NAME}` - as authority. + as authority. The `--` after `--base-path cumulus_collator_path` is important, it tells the CLI to pass these arguments + to the relay chain node that is running inside of the collator. 5. Open `https://polkadot.js.org/apps/#/sudo` and register the parachain by calling `Registrar > RegisterPara` From 1778c7327b95576e2f74cadb20803c4acb6ed02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Fri, 14 Feb 2020 12:02:45 +0100 Subject: [PATCH 2/3] Add missing `=` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d8b5c9f254..1c64c232920 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ A planned Polkadot collator for the parachain. 4. Run the collator: - `cargo run --release -p cumulus-test-parachain-collator -- --base-path cumulus_collator_path -- --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/PEER_ID --bootnodes /ip4/127.0.0.1/tcp/50666/p2p/PEER_ID` + `cargo run --release -p cumulus-test-parachain-collator -- --base-path cumulus_collator_path -- --bootnodes=/ip4/127.0.0.1/tcp/30333/p2p/PEER_ID --bootnodes=/ip4/127.0.0.1/tcp/50666/p2p/PEER_ID` `PEER_ID_${NAME}` needs to be replaced with the peer id of the polkadot validator that uses `${NAME}` as authority. The `--` after `--base-path cumulus_collator_path` is important, it tells the CLI to pass these arguments From ffd778d09dd05babb21afa73ada7882259da23ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Fri, 14 Feb 2020 12:12:38 +0100 Subject: [PATCH 3/3] Apply suggestions from code review --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c64c232920..ec95af7abdd 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ A planned Polkadot collator for the parachain. 4. Run the collator: - `cargo run --release -p cumulus-test-parachain-collator -- --base-path cumulus_collator_path -- --bootnodes=/ip4/127.0.0.1/tcp/30333/p2p/PEER_ID --bootnodes=/ip4/127.0.0.1/tcp/50666/p2p/PEER_ID` + `cargo run --release -p cumulus-test-parachain-collator -- --base-path cumulus_collator_path -- --bootnodes=/ip4/127.0.0.1/tcp/30333/p2p/PEER_ID_${NAME} --bootnodes=/ip4/127.0.0.1/tcp/50666/p2p/PEER_ID_${NAME}` `PEER_ID_${NAME}` needs to be replaced with the peer id of the polkadot validator that uses `${NAME}` as authority. The `--` after `--base-path cumulus_collator_path` is important, it tells the CLI to pass these arguments