ElementsProject / ElementsProject/elements

txout nonce is inconsistently stored in coinsview

オープン
#1,004 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
1.2k
フォーク
416
平均マージ
1日 23時間
マージ済み PR(30日)
15

説明

We currently do not de/serialize the txout nonce in the `Coin` class, meaning that after restarting the node, all nonces in the utxoset are cleared, resulting in a network where everyone has an (inconsequentially) different version of the UTXO set.

Currently the nonce is not used for anything consensus-critical, but it may be in the future --- for example, we might want input nonces covered by a future sighash version --- so this is a massive footgun.

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

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

調査の方向性

まず Coin クラスのシリアライズおよびデシリアライズの経路を特定し、次にノードの再起動をまたいで UTXO エントリがどのように書き込まれ、復元されるかを追跡します。txout nonce が消去されることなくシリアライズと再起動を通過し、復元された UTXO 状態を検証できれば完了です。

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

評価

技術スタック
cpp
領域
blockchain
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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