Splice negotiation failure handling issues

Offen
#4,696 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

  • #4708 von @wpaulino — ohne Merge geschlossen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
28/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
rust
Bereich
backend, blockchain

Rechercherichtung

This is Lightning splice/RBF failure handling, not a first-issue edit. Start from the three cases in the issue: invalid splice contributions (min_funding_satoshis, zero-reserve, post-HTLC invalidity), stale RBF vs quiescence, and abort before pending_splice exists. Follow #4657, the closed #4708, and the linked first-shot commit for current disconnect vs recoverable paths. Done means those failures no longer force peer-fatal disconnects or leave quiescence/queued splice stuck, with channel still usable.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Several splice negotiation failure paths are currently treated as peer-fatal errors even though the channel can remain usable. This makes local validation failures, stale RBF attempts, and certain abort races unnecessarily disruptive.

  • Invalid splice contributions

    When a splice contribution is invalid, such as falling below min_funding_satoshis, violating zero-reserve balance rules, or becoming invalid after HTLC activity before quiescence, the node may emit a warning disconnect. These errors describe a bad splice attempt, not necessarily a broken channel or malicious peer.

    This causes otherwise recoverable splice negotiation failures to require a peer disconnect and reconnect before the channel can continue normal operation.

  • RBF becoming unavailable

    An RBF attempt can become stale while the channel is moving toward quiescence. For example, a previous splice candidate may lock in before the delayed RBF handshake finishes. The current handling can classify that condition as a disconnect-worthy protocol error.

    This makes a normal timing race in splice/RBF negotiation look like a channel failure, even though the RBF attempt is the only stale state.

  • Abort before pending splice state exists

    A splice can be queued behind quiescence before the channel has created active pending_splice negotiation state. If the peer aborts during that window, the channel may not have the state that the normal abort cleanup path expects.

    This leaves the queued splice action and quiescence state difficult to unwind. Held updates may remain blocked because the channel is still waiting for the queued splice flow to complete or be cleaned up.

These issues make splice failure handling more severe than the underlying failure requires. They can force disconnects, strand queued splice state, or keep the channel quiescent after the splice attempt is no longer viable.

Discovered during development of #4657. AI first shot: https://github.com/joostjager/rust-lightning/commit/dcb9644f5244a003ab6d13df7c9df90f4a6b0bda

Vorherrschende Sprache
Rust
Sterne
1.4k
Forks
482
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus lightningdevkit/rust-lightning

Alle Issues in lightningdevkit/rust-lightning

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.