ElementsProject / ElementsProject/elements
claimpegin optional `claim_script` argument is pretty much useless
- 主要言語
- C++
- スター
- 1.2k
- フォーク
- 416
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 15
説明
As-is, if the wallet doesn't have the `claim_script` address in its address book, it will not be able to sign it regardless, requiring a `createrawpegin` step then pass to the wallet that knows how to sign the input.
The only effect the optional argument has is that it can find a specific peg-in output, if there are multiple with unique output scripts, bypassing the "return first seen" behavior currently in the wallet code. Our wallet doesn't even support multiple outputs per peg-in transaction, so this is never exposed to the user.
コントリビューションガイド
調査の方向性
まず、wallet 側の claimpegin の処理を追跡し、createrawpegin のフローと比較してください。特に、claim_script がどのように peg-in の出力を選択し、署名を承認するために使われているかを確認します。この issue では、引数を削除すべきか有用なものにすべきかが定義されていないため、完了には maintainer の判断と、それに対応する動作テストが必要です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- blockchain
- issue の種類
- リファクタリング
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100