Splice negotiation failure handling issues
還沒有人認領這個 Issue。
- #4708 來自 @wpaulino —— 已關閉,未合併
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 28/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- rust
- 領域
- backend, blockchain
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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_splicenegotiation 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
- 主要語言
- Rust
- 星號
- 1.4k
- 分支
- 482
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
lightningdevkit/rust-lightning 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 83/100
lightningdevkit/rust-lightning#4767 ·
-
難度 1/5 1 小時以內 新手友好度 65/100
lightningdevkit/rust-lightning#1849 ·
-
難度 4/5 3-5 天 新手友好度 22/100
lightningdevkit/rust-lightning#4764 · 3 則留言 ·
-
難度 5/5 一週以上 新手友好度 22/100
lightningdevkit/rust-lightning#4757 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 28/100
lightningdevkit/rust-lightning#4739 ·
查看 lightningdevkit/rust-lightning 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
autofixer: follow-up
難度 2/5 1-3 小時 新手友好度 78/100
tursodatabase/turso#12531 ·
維護者通常 1 天內回覆
-
bug help wanted ui
難度 2/5 1-3 小時 新手友好度 82/100
userFRM/egui-charts#4292 ·
維護者通常 1 天內回覆
-
Issue-Bug Need-Review
難度 1/5 1-3 小時 新手友好度 85/100
PowerShell/DSC#1832 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 83/100
Tripstack-Corp/spyc#1352 ·
維護者通常 1 天內回覆