Add Paranodes
How-to connect additional parachain nodes to an established local relay testnet
As you learned in Prepare a local relay chain, a parachain can work with a single collator.
Additional relay chain nodes
You should have at least two validators (relay chain nodes) running for every collator (parachain block authoring nodes) on your network.
You can modify the provided plain relay chain spec file to include more validators, or go the more "correct" route used for production of modifying the source for genesis state in chain_spec.rs
for your relay chain to add more testnet validators at genesis. Recall how to generate chain specifications in the add trusted nodes tutorial.
Start a collator
Start the collator node
With chain spec in hand, you can now start the collator node. Notice that we need to supply the same relay chain chain spec we used for launching relay chain nodes at the second half of the command:
Start a second collator
The command to run additional collators is as follows, assuming Alice
node is running already. This command is nearly identical to the one we used to start the first collator, but we need to avoid conflicting ports and base-path
directories:
Related material
Prepare a local relay chain tutorial.
Last updated