Document trust requirements for floating-prevout accounting
メンテナーはふだん 2 日以内に返信
@Anandb71 がすでに取り組んでいます。
2026年10月18日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
調査の方向性
SpkTxOutIndex::scan_txout、sent_and_received、net_value のドキュメントから始め、次に TxGraph::calculate_fee と比較します。floating-prevout の値は呼び出し元が提供する信頼前提であり、それらをスキャンまたは永続化しても正しさは検証されないことを記載します。Accounting API のドキュメントにこの点が明確に記載されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
SpkTxOutIndex::scan_txout, sent_and_received, and net_value do not document that accounting trusts supplied floating prevouts. An incorrect value with a tracked script is used directly, even when the parent transaction is unavailable. The first insertion is also included in IndexedTxGraph's changeset, so restoring that state retains the value.
TxGraph::calculate_fee explicitly says to insert only values the caller trusts; the indexer accounting methods lack the equivalent qualification. Merely having scanned a prevout does not establish its correctness.
This issue was found by AI.
To Reproduce
- Track a script in
SpkTxOutIndexand scan a floating prevout claiming1_000_000sat to that script, without its parent transaction. - Call
sent_and_receivedandnet_valueon a transaction spending that outpoint and returning4_000sat to the tracked script. - The reported sent amount is
1_000_000sat and net value is-996_000sat, based solely on the supplied claim. The method docs mention prior scanning, but not this trust requirement.
Expected behavior
The indexer API documentation should clearly describe the trust assumptions behind floating-prevout accounting, including that scanning or persisting a value does not verify it.
- 主要言語
- Rust
- スター
- 1.1k
- フォーク
- 520
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 21
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bitcoindevkit/bdk のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
bitcoindevkit/bdk#2432 ·
メンテナーはふだん 2 日以内に返信
-
static/bdk.svg still shows the old logo (bdk.png has the new one)再び着手できるかも @notmandatory が 38 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug chore
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
bitcoindevkit/bdk#2326 · コメント 5 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
file_store: `Store::append` through a second handle overwrites changesets appended via another handle再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
bitcoindevkit/bdk#2308 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
file_store: `Store::load` never terminates when a changeset entry decodes to zero bytes対応中かも @nymius が 85 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
bitcoindevkit/bdk#2307 · コメント 5 件 ·
メンテナーはふだん 2 日以内に返信
-
TxGraph:: apply_changeset ignores ChangeSet::first_seen対応中かも @evanlinjin が 19 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bitcoindevkit/bdk#2270 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
bitcoindevkit/bdk の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
bug order-flow studies ui
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
userFRM/egui-charts#2417 ·
メンテナーはふだん 1 日以内に返信
-
In a plain-text message, Font, Font Size, Font Color and Text Highlight Color stay live対応中かも @ragelfundionctrumnar が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
UCS-Care-Group/mailcraft#862 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
smoltcp-rs/smoltcp#1243 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 4 日以内に返信