@@ -184,21 +184,29 @@ cargo build --features try-runtime --release && cp target/release/substrate .
184184
185185``` bash
186186# Assuming local nodes are running (e.g., `./substrate --dev --tmp --ws-port 9999`).
187- # Multiple --uri flags can be provided for parallel state download.
187+ # Multiple URIs can be provided for parallel state download, either
188+ # comma-separated or via repeated --uri flags.
188189try-runtime \
189190 --runtime /path-to-substrate/target/release/wbuild/my-runtime.wasm \
190191 on-runtime-upgrade \
191192 --disable-mbm-checks \
192193 live \
193- --uri ws://localhost:9999 \
194- --uri ws://localhost:9998
194+ --uri ws://localhost:9999,ws://localhost:9998
195195 ...
196196```
197197
198198To speed up state download, you can provide multiple URIs for parallel fetching:
199199
200200``` bash
201201# assuming multiple substrate nodes running on ports 9999, 9998, 9997
202+ # comma-separated:
203+ try-runtime \
204+ --runtime /path-to-substrate/target/release/wbuild/my-runtime.wasm \
205+ on-runtime-upgrade \
206+ live \
207+ --uri ws://localhost:9999,ws://localhost:9998,ws://localhost:9997
208+
209+ # or repeated flags:
202210try-runtime \
203211 --runtime /path-to-substrate/target/release/wbuild/my-runtime.wasm \
204212 on-runtime-upgrade \
@@ -210,8 +218,8 @@ try-runtime \
210218
211219* Same as the previous example, but run it at specific block number's state and using the live
212220 polkadot network. This means that this block hash's state should not yet have been pruned by
213- the node running at ` rpc.polkadot.io ` . Multiple ` --uri ` flags can be provided for parallel
214- state download.
221+ the node running at ` rpc.polkadot.io ` . Multiple URIs can be provided for parallel
222+ state download (comma-separated or via repeated ` --uri ` flags) .
215223
216224``` bash
217225try-runtime \
@@ -236,8 +244,7 @@ For faster snapshot creation with large state, use multiple RPC endpoints:
236244
237245``` bash
238246try-runtime --runtime existing create-snapshot \
239- --uri ws://localhost:9999 \
240- --uri ws://localhost:9998 \
247+ --uri ws://localhost:9999,ws://localhost:9998 \
241248 -- my-snapshot.snap
242249```
243250
0 commit comments