frequency
frequency copied to clipboard
Implement Automated Task using `try-runtime` to create snapshots of mainnet and testnet.
Note this is using https://github.com/paritytech/try-runtime-cli/
As a developer, I want to be able to test storage migrations, etc. using try-runtime
. However, when the target network is mainnet, this process takes many hours, if it succeeds at all. Creating a snapshot takes a long time (> 12 hours), but it does succeed.
The try-runtime
crate should be installed and updated.
Here's the command to create the snapshot.
❯ try-runtime create-snapshot --uri wss://1.rpc.frequency.xyz:443 mainnet-all-pallets.state
Using a snapshot only takes a few seconds to execute:
❯ try-runtime --runtime ./target/debug/wbuild/frequency-runtime/frequency_runtime.wasm on-runtime-upgrade snap --path mainnet-all-pallets.state
Might be related: #1824