We need the ability to test governance proposals that depend on runtime upgrades that have not yet executed.
Runtime upgrades for system parachains can take up to 4 weeks to execute.
We therefore need to execute the runtime upgrade and the subsequent governance proposal in a simulated Chopsticks environment.
In the following scenario, we will simulate execution of the 1.2.0 upgrade: https://github.com/polkadot-fellows/runtimes/releases/tag/v1.2.0
Install opengov-cli
Build the preimage for the upgrade:
PREIMAGE_SIZE
PREIMAGE_HASH
PREIMAGE_WITH_LENGTH_PREFIX
:polkadot.yml
polkadot-asset-hub.yml:
polkadot-bridge-hub.yml:
parachainSystem.enactAuthorizedUpgrade
, passing the parachain WASM blob previously generated by opengov-cli
:Some polkadot API endpoints aggressively timeout connections, causing Chopsticks to die:
The usual remedy is to restart chopsticks and pray the API connections don't die again.