wollet: Waterfalls scan sets `last_unused` to a page-relative index past the first page
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- blockchain
調査の方向性
lwk_wollet/src/clients/asyncr/esplora.rs を開き、765〜776行目付近の get_history_waterfalls を読んでください。i はページ内の相対位置です。last_unused の代入を、数行下でページオフセットをすでに加算している導出処理と比較してください。代入がページオフセットを含むように修正し、その後、使用済みアドレスが1,000を超えるチェーンで、報告された last_unused がウォレット相対であることを確認してください。複数ページにわたるスキャンが、すでに使用済みのアドレスを返さなくなれば完了です。そのようなスキャンを実行している既存の wollet クライアントのテストも確認してください。
索引モデルが issue の本文から書いたものです。
説明
When a Waterfalls descriptor scan spans more than one page (a chain with more than 1,000 used addresses), the last_unused index in the resulting update is relative to the last page that had activity, not to the wallet. The wallet then hands out an address that is already used.
The bug is at lwk_wollet/src/clients/asyncr/esplora.rs, get_history_waterfalls
(line 772 on master at the time of writing)
i is a position within the current page. The derivation a few lines below (776) adds the page offset, while the last_unused assignment does not, resulting in each page overwriting the value set by the previous one.
- 主要言語
- Rust
- スター
- 114
- フォーク
- 69
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Blockstream/lwk のほかの issue
-
Ignore entry for RUSTSEC-2020-0168 no longer matches anything (`mach` is no longer in `Cargo.lock`)対応中かも @zyl71 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
Blockstream/lwk#213 ·
-
C# bindings: all generated types are `internal`, `LiquidWalletKit` 0.8.2 has no usable public API対応中かも @lisboaigor が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
Blockstream/lwk#210 ·
-
Applying a merged update with a txid in both `txid_height_new` and `txid_height_delete` drops its outputs from `unspent`対応中かも @Jeon1691 が 4 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
Blockstream/lwk#205 ·
-
Cache `unspent` restores an input of a deleted transaction that a known replacement still spendsオープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
Blockstream/lwk#204 ·
-
Cache `unspent` re-adds a spent output when its transaction is deleted and then seen again対応中かも @Jeon1691 が 6 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Blockstream/lwk#201 ·
Blockstream/lwk の issue をすべて見る
似ている issue
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
influxdata/influxdb#27767 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manuscript-lang/manuscript#6389 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信