You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/knowledgebase/integrate/try-runtime.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,11 @@ In order to query state, `try-runtime` makes use of Substrate's RPCs, namely [`S
40
40
41
41
The most common use case for `try-runtime` is with storage migrations and runtime upgrades.
42
42
43
+
There are a number of flags that should be set on the node try-runtime is completing RPC queries against in order to work well with the large payloads, namely:
44
+
45
+
- set `--rpc-max-payload 1000` to ensure large RPC queries can work.
46
+
- set `--rpc-cors all` to ensure ws connections can come through.
47
+
43
48
> **Tip:** Combine `try-runtime` with [`fork-off-substrate`][fork-off-gh] to test your chain before
44
49
> production. Use `try-runtime` to test your chain's migration and its pre and post states. Then,
45
50
> use `fork-off-substrate` if you want to check that block production continues fine after the
@@ -134,6 +139,8 @@ The possible sub-commands include:
134
139
-**`on-runtime-upgrade`**: Executes "tryRuntime_on_runtime_upgrade" against the given runtime state.
135
140
-**`offchain-worker`**: Executes "offchainWorkerApi_offchain_worker" against the given runtime state.
136
141
-**`execute-block`**: Executes "core_execute_block" using the given block and the runtime state of the parent block.
142
+
-**`follow-chain`**: Follows a given chain's finalized blocks and applies to all its extrinsics. This allows the
143
+
behavior of a new runtime to be inspected over a long period of time, with real transactions coming as input.
137
144
138
145
For example, running `try-runtime` with the "on-runtime-upgrade" subcommand on a chain
139
146
running locally:
@@ -162,6 +169,32 @@ ws//$HOST:9944
162
169
163
170
> **Tip:** pass in the --help flag after each subcommand to see the command's different options.
164
171
172
+
Run the migrations of the local runtime on the state of SomeChain, for example:
0 commit comments