paritytech / paritytech/try-runtime-cli

Should be able to pass all `live` state arguments to the `execute_block` command

オープン
#94 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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:

https://github.com/paritytech/try-runtime-cli/blob/60cfc452c4c1f5de0bcfa85e1e8dbba8ae8d3ebc/core/src/commands/execute_block.rs#L114C17-L120C18

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず core/src/commands/execute_block.rs の 114-120 行付近を読み、execute-block の live 引数と issue の例のコマンドを比較します。示されている try-runtime コマンドを Astar runtime に対して実行し、すべての pallet をダウンロードするのではなく、pallet、hashed_prefixes、child_tree が live storage setup に到達することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
cli, testing
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。