Files
pezkuwi-subxt/polkadot/parachain/test-parachains/adder/collator
Andrei Sandu 039d183be9 adder-collator: add velocity measurement and make elastic scaling test more robust (#4016)
Improves `adder-collator` to also compute the parachain velocity. The
velocity is defined as number of parachain blocks progressing per relay
chain block.

In this test we're asserting that the elastic parachain always
progresses by 3 blocks per RCB, while the non-elastic parachain
progresses normally - 1 block per RCB.

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: ordian <write@reusable.software>
2024-04-08 12:29:35 +00:00
..
2023-09-11 19:14:07 +02:00
2023-09-04 12:02:32 +03:00

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.