paritytech / paritytech/try-runtime-cli
Should be able to pass all `live` state arguments to the `execute_block` command
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 25
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
Problem
I've noticed that the pallet, hashed_prefixes & child_tree arguments are not passed to the execute_block command when testing storage invariants with try-state. Here is my command:
try-runtime \
--runtime ./target/release/wbuild/astar-runtime/astar_runtime.wasm \
execute-block \
--try-state DappStaking \
live --uri wss://rpc.astar.network:443 --pallet DappStaking
This log is always printed:
[2024-08-20T08:39:00Z INFO remote-ext] since no prefix is filtered, the data for all pallets will be downloaded
Solution
I suggest adjusting the following section by removing the default method:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading core/src/commands/execute_block.rs around lines 114-120 and compare the execute-block live arguments with the example command in the issue. Run the shown try-runtime command against the Astar runtime and verify that pallet, hashed_prefixes, and child_tree reach the live storage setup instead of downloading all pallets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100