Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Dawn Kelly <83190195+dawnkelly09@users.noreply.github.com>
  • Loading branch information
nhussein11 and dawnkelly09 authored Oct 2, 2024
1 parent f450181 commit 1098be0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ To modify the chain specification:
--8<-- 'code/tutorials/polkadot-sdk/build-a-parachain/acquire-a-testnet-slot/testnet-slot-1.json:23:25'
```
4. Set the `parachainId` to the parachain identifier that you previously reserved
4. Set the `parachainId` to the parachain identifier that you previously reserved:
```json
--8<-- 'code/tutorials/polkadot-sdk/build-a-parachain/acquire-a-testnet-slot/testnet-slot-1.json::2'
--8<-- 'code/tutorials/polkadot-sdk/build-a-parachain/acquire-a-testnet-slot/testnet-slot-1.json:5:10'
--8<-- 'code/tutorials/polkadot-sdk/build-a-parachain/acquire-a-testnet-slot/testnet-slot-1.json:22:25'
```
5. Add the public key for your account to the session keys section. Each configured session key will require a running collator
5. Add the public key for your account to the session keys section. Each configured session key will require a running collator:
```json
--8<-- 'code/tutorials/polkadot-sdk/build-a-parachain/acquire-a-testnet-slot/testnet-slot-1.json::2'
Expand All @@ -113,7 +113,7 @@ To modify the chain specification:
6. Save your changes and close the plain text chain specification file
7. Generate a raw chain specification file from the modified chain specification file
7. Generate a raw chain specification file from the modified chain specification file:
```bash
./target/release/parachain-template-node build-spec \
Expand All @@ -130,14 +130,14 @@ To modify the chain specification:
To prepare the parachain collator to be registered on Paseo, follow these steps:
1. Export the Wasm runtime for the parachain by running a command similar to the following
1. Export the Wasm runtime for the parachain by running a command similar to the following:
```bash
./target/release/parachain-template-node export-genesis-wasm \
--chain raw-parachain-chainspec.json para-4508-wasm
```
2. Export the genesis state for the parachain by running a command similar to the following
2. Export the genesis state for the parachain by running a command similar to the following:
```bash
./target/release/parachain-template-node export-genesis-state \
Expand All @@ -146,7 +146,7 @@ To prepare the parachain collator to be registered on Paseo, follow these steps:
## Start the Collator Node
You must have the ports for the collator publicly accessible and discoverable to enable parachain nodes to peer with Paseo validator nodes to produce blocks. You can specify the ports with the --port command-line option. For example, you can start the collator with a command similar to the following:
You must have the ports for the collator publicly accessible and discoverable to enable parachain nodes to peer with Paseo validator nodes to produce blocks. You can specify the ports with the `--port` command-line option. For example, you can start the collator with a command similar to the following:
```bash
./target/release/parachain-template-node --collator \
Expand All @@ -161,7 +161,7 @@ You must have the ports for the collator publicly accessible and discoverable to
--rpc-port 9988
```
In this example, the first `--port` setting specifies the port for the collator node, and the second `--port` specifies the embedded relay chain node port. The first `--rpc-port` setting specifies the port you can connect to collator. The second `--rpc-port` specifies the port for connecting to the embedded relay chain.
In this example, the first `--port` setting specifies the port for the collator node and the second `--port` specifies the embedded relay chain node port. The first `--rpc-port` setting specifies the port you can connect to the collator. The second `--rpc-port` specifies the port for connecting to the embedded relay chain.
## Obtain Coretime
Expand Down
14 changes: 7 additions & 7 deletions tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Before diving into this tutorial, it's recommended that you have a basic underst

To complete this tutorial, ensure that you have:

- Configured your environment for Substrate development by installing [Rust and the Rust toolchain](){target=\_blank}
- Configured your environment for Substrate development by installing [Rust and the Rust toolchain](TODO: add path){target=\_blank}
- Completed [Build a Local Blockchain](/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain){target=\_blank} tutorial and know how to compile and run a Polkadot SDK-based node

## Build a Local Relay Chain
Expand All @@ -48,7 +48,7 @@ To build a local relay chain, follow these steps:
cd polkadot-sdk
```

3. Build the relay chain node
3. Build the relay chain node:

```bash
cargo build --release
Expand All @@ -57,7 +57,7 @@ To build a local relay chain, follow these steps:
!!! note
Depending on your machine's specifications, the build process may take some time.
4. Verify that the node is built correctly
4. Verify that the node is built correctly:
```bash
./target/release/polkadot --version
Expand All @@ -79,7 +79,7 @@ If you wanted to connect two parachains with a single collator each, you must ru

The chain specification file is available in two formats: a JSON file in plain text and a JSON file in SCALE-encoded raw format.

You can read and edit the plain text version of the chain specification file. However, the chain specification file must be converted to the SCALE-encoded raw format before you can use it to start a node. For information about converting a chain specification to the raw format, see [Customize a Chain Specification](){target=\_blank}.
You can read and edit the plain text version of the chain specification file. However, the chain specification file must be converted to the SCALE-encoded raw format before you can use it to start a node. For information about converting a chain specification to the raw format, see [Customize a Chain Specification](TODO: add path){target=\_blank}.

The sample chain specification is only valid for a single parachain with two validator nodes. If you add other validators, add additional parachains to your relay chain, or want to use custom account keys instead of the predefined account, you'll need to create a custom chain specification file.
Expand All @@ -97,7 +97,7 @@ To start the validator nodes, follow these steps:
1. Generate the chain specification file in the plain text format and use it to create the raw chain specification file. Save the raw chain specification file in a local working directory.
1. Generate the plain text chain specification file
1. Generate the plain text chain specification file:
```bash
./target/release/polkadot build-spec \
Expand All @@ -107,7 +107,7 @@ To start the validator nodes, follow these steps:
!!! note
Note that the network values are set to the default when generating the chain specification file with the `build-spec`. You can customize the network values by editing the chain specification file for production networks.
2. Convert the plain text chain specification file to the raw format
2. Convert the plain text chain specification file to the raw format:
```bash
./target/release/polkadot build-spec \
Expand Down Expand Up @@ -138,7 +138,7 @@ To start the validator nodes, follow these steps:
!!! note
You need to specify this identifier to enable other nodes to connect. In this case, the `Local node identity` is `12D3KooWG393uX82rR3QgDkZpb7U8StzuRx9BQUXCvWsP1ctgygp`.

4. Open a new terminal and start the second validator using the `bob` account. The command is similar to the command used to start the first node, with a few crucial differences
4. Open a new terminal and start the second validator using the `bob` account. The command is similar to the command used to start the first node, with a few crucial differences:

```bash
./target/release/polkadot \
Expand Down

0 comments on commit 1098be0

Please sign in to comment.