Consider adding an extra monitor update upon ChannelManager::funding_transaction_signed

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
22/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust

調査の方向性

The failure is a crash after ChannelManager::funding_transaction_signed without persisting ChannelManager, then aborting a splice while the peer has already sent tx_signatures. Start from funding_transaction_signed and Event::FundingTransactionReadyForSigning, and from how ChannelMonitor is updated relative to ChannelManager. Done means an extra monitor update so canceling the splice does not force-close once manager/monitor desync is no longer itself a force-close. This needs Lightning channel and persistence knowledge; the issue is 250 days quiet.

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

説明

@TheBlueMatt pointed out in #4336 a case where we end up with a force close when canceling a splice:

  1. tx_complete is exchanged
  2. Node 1 handles Event::FundingTransactionReadyForSigning, calls funding_transaction_signed, and sends its commitment_signed
  3. Node 2 processes it, and sends its own commitment_signed and tx_signatures
  4. Node 1 crashes without persisting the latest ChannelManager, and needs to handle Event::FundingTransactionReadyForSigning again
  5. Node 1 chooses to cancel the splice this time around and sends tx_abort
  6. Node 2 has already committed to the funding transaction via their tx_signatures, so they can't tx_abort back and force closes instead

Note that that is only worth fixing once we no longer force close due to a desync between the ChannelManager and ChannelMonitor persisted state.

主要言語
Rust
スター
1.4k
フォーク
482
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

lightningdevkit/rust-lightning のほかの issue

lightningdevkit/rust-lightning の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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