| Crates.io | pallet-staking-async-parachain-runtime |
| lib.rs | pallet-staking-async-parachain-runtime |
| version | 0.5.0 |
| created_at | 2025-04-22 09:47:15.674425+00 |
| updated_at | 2025-09-08 09:58:26.493528+00 |
| description | A parachain runtime for staking-async |
| homepage | https://paritytech.github.io/polkadot-sdk/ |
| repository | https://github.com/paritytech/polkadot-sdk.git |
| max_upload_size | |
| id | 1643769 |
| size | 1,083,199 |
This parachain runtime is a fake fork of the asset-hub next (created original by DonĂ¡l). It is here to test the async-staking pallet in a real environment.
This parachain contains:
pallet-staking-asyncpallet-staking-async-rc-clientpallet-election-provider-multi-block and familypallet-nomination-pools, pallet-fast-unstake, pallet-bags-list, and
pallet-delegated-staking.All of the above are means to stake and select validators for the RELAY-CHAIN, which is eventually
communicated to it via the pallet-staking-async-rc-client pallet.
A lot more is in the runtime, and can be eventually removed.
Note that the parachain runtime also contains a pallet-session that works with
pallet-collator-selection for the PARACHAIN block author selection.
The counterpart rc runtime is a relay chain that is meant to host the parachain. It contains:
pallet-staking-async-ah-clientpallet-sessionpallet-authorshipTo run this, a one-click script is provided:
bash build-and-run-zn.sh
This script will generate chain-specs for both runtimes, and run them with zombie-net.
Make sure you have all Polkadot binaries (
polkadot,polkadot-execution-workerandpolkadot-prepare-worker) andpolkadot-parachaininstalled in your PATH. You can usually download them from the Polkadot-sdk release page.
You also need chain-spec-builder, but the script builds that and uses a fresh one.
We have tried to move as much of the configuration as possible to different chain-specifications, so that manually tweaking the code is not needed.
The parachain comes with 3 main chain-spec presets.
development: 100 validator, 2000 nominators, all 2000 nominators in the snapshot, 10 validator
to be elected, 4 pagesdot_size: 2000 validator, 25_000 nominators, 22_500 nominators in the snapshot, 500 validator to
be elected, 32 pagesksm_size: 4000 validator, 20_000 nominators, 12_500 nominators in the snapshot, 1000 validator
to be elected, 16 pagesBoth when running the benchmarks (bench.sh) and the chain (build-and-run-zn.sh), you can specify
the chain-spec preset. See each file for more info as to how.