|
248 | 248 | //! # assuming there's `./substrate --dev --tmp --ws-port 9999` or similar running. |
249 | 249 | //! ./substrate-try-runtime \ |
250 | 250 | //! try-runtime \ |
251 | | -//! --runtime kitchensink_runtime.wasm \ |
| 251 | +//! --runtime runtime-try-runtime.wasm \ |
252 | 252 | //! -lruntime=debug \ |
253 | 253 | //! on-runtime-upgrade \ |
254 | 254 | //! live --uri ws://localhost:9999 |
|
260 | 260 | //! ```bash |
261 | 261 | //! ./substrate-try-runtime \ |
262 | 262 | //! try-runtime \ |
263 | | -//! --runtime kitchensink_runtime.wasm \ |
| 263 | +//! --runtime runtime-try-runtime.wasm \ |
264 | 264 | //! -lruntime=debug \ |
265 | 265 | //! on-runtime-upgrade \ |
266 | 266 | //! live --uri ws://localhost:9999 \ |
|
295 | 295 | //! Then, we can use it to have the same command as before, `on-runtime-upgrade` |
296 | 296 | //! |
297 | 297 | //! ```bash |
298 | | -//! try-runtime \ |
| 298 | +//! ./substrate-try-runtime try-runtime \ |
299 | 299 | //! --runtime runtime-try-runtime.wasm \ |
300 | 300 | //! -lruntime=debug \ |
301 | 301 | //! on-runtime-upgrade \ |
|
309 | 309 | //! --runtime runtime-try-runtime.wasm \ |
310 | 310 | //! -lruntime=debug \ |
311 | 311 | //! execute-block live \ |
312 | | -//! --uri ws://localhost:999 |
| 312 | +//! --uri ws://localhost:9999 |
313 | 313 | //! ``` |
314 | 314 | //! |
315 | 315 | //! This can still be customized at a given block with `--at`. If you want to use a snapshot, you |
|
320 | 320 | //! |
321 | 321 | //! ```bash |
322 | 322 | //! ./substrate-try-runtime try-runtime \ |
323 | | -//! --runtime runtime-try-runtime.wasm \ |
324 | | -//! -lruntime=debug \ |
325 | | -//! execute-block live \ |
326 | | -//! --try-state System,Staking \ |
327 | | -//! --uri ws://localhost:999 |
| 323 | +//! --runtime runtime-try-runtime.wasm \ |
| 324 | +//! -lruntime=debug \ |
| 325 | +//! execute-block \ |
| 326 | +//! --try-state System,Staking \ |
| 327 | +//! live \ |
| 328 | +//! --uri ws://localhost:9999 \ |
| 329 | +//! --pallet System Staking |
328 | 330 | //! ``` |
329 | 331 | //! |
330 | | -//! Will only run the `try-state` of the two given pallets. See |
331 | | -//! [`frame_try_runtime::TryStateSelect`] for more information. |
| 332 | +//! Will only run the `try-state` of the two given pallets. When running `try-state` against |
| 333 | +//! some real chain data it can take a long time for the command to execute since it has to |
| 334 | +//! query all the key-value pairs. In scenarios like above where we only want to run the |
| 335 | +//! `try-state` for some specific pallets, we can use the `--pallet` option to specify from |
| 336 | +//! which pallets we want to query the state. This will greatly decrease the execution time. |
| 337 | +//! |
| 338 | +//! See [`frame_try_runtime::TryStateSelect`] for more information. |
332 | 339 | //! |
333 | 340 | //! * Follow our live chain's blocks using `follow-chain`, whilst running the try-state of 3 pallets |
334 | 341 | //! in a round robin fashion |
|
0 commit comments