Consider adding an extra monitor update upon ChannelManager::funding_transaction_signed

Aperta
#4,358 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

@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.

Lingua principale
Rust
Stelle
1.4k
Fork
482
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lightningdevkit/rust-lightning

Tutte le issue di lightningdevkit/rust-lightning

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.