Files
pezkuwi-subxt/polkadot/parachain/test-parachains/adder/collator
Sergei Shulepov 917a5cce62 adder-collator cli flags (#2051)
* Accept --parachain-id in adder-collator

* adder-collator: Support a file chainspec

This change is to make it more similar to what we have in cumlus.
2020-12-01 19:20:20 +01:00
..
2020-12-01 19:20:20 +01:00

How to run this collator

First start two validators that will run for the relay chain:

cargo run --features=real-overseer --release -- -d alice --chain rococo-local --validator --alice --port 50551
cargo run --features=real-overseer --release -- -d bob --chain rococo-local --validator --bob --port 50552

Next start the collator that will collate for the adder parachain:

cargo run --features=real-overseer --release -p test-parachain-adder-collator -- --tmp --chain rococo-local --port 50553

The last step is to register the parachain using polkadot-js. The parachain id is 100. The genesis state and the validation code are printed at startup by the collator.

To do this automatically, run scripts/adder-collator.sh.