paritytech / paritytech/try-runtime-cli
Should be able to pass all `live` state arguments to the `execute_block` command
未关闭
还没有人认领这个 Issue。
- 主要语言
- Rust
- 星标
- 25
- 派生
- 29
- PR 合并指标
- 30 天内没有已合并 PR
描述
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:
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先阅读 core/src/commands/execute_block.rs 中 114-120 行附近的内容,并将 execute-block 的 live 参数与 issue 中的示例命令进行比较。针对 Astar runtime 运行所示的 try-runtime 命令,并验证 pallet、hashed_prefixes 和 child_tree 是否到达 live storage setup,而不是下载所有 pallet。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust
- 领域
- cli, testing
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100