mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 12:11:02 +00:00
3e8139e7de
Currently, collators and their alongside nodes spin up a full-scale overseer running a bunch of subsystems that are not needed if the node is not a validator. That was considered to be harmless; however, we've got problems with unused subsystems getting stalled for a reason not currently known, resulting in the overseer exiting and bringing down the whole node. This PR aims to only run needed subsystems on such nodes, replacing the rest with `DummySubsystem`. It also enables collator-optimized availability recovery subsystem implementation. Partially solves #1730.
How to run this collator
First, build Polkadot:
cargo build --release
Then start two validators that will run for the relay chain:
cargo run --release -- -d alice --chain rococo-local --validator --alice --port 50551
cargo run --release -- -d bob --chain rococo-local --validator --bob --port 50552
Next start the collator that will collate for the adder parachain:
cargo run --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.