Skip to content

Benchmark command

Using the chain spec instead of the runtime to generate the genesis state is deprecated. Please remove the --chain/--dev/--local argument, point --runtime to your runtime blob and set --genesis-builder=runtime. This warning may become a hard error any time after December 2024.

Release Note: https://github.com/paritytech/polkadot-sdk/blob/f8feebc12736c04d60040e0f291615479f9951a5/prdoc/1.11.0/pr_3512.prdoc

It should be easy to replace --chain=$chain with --genesis-builder=runtime --runtime=target/release/wbuild/$chain-runtime/$chain_runtime.compact.compressed.wasm, but as we need a prepared chain, it will not work out of the box.

The way to go is to have a special BuildGenesisConfig only for benchmarking by pallet that builds the chain in the state that is mandatory for benchmarking.

Edited by Benjamin Gallois
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information