AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 44 Bitcoin

Check channel is live while handling counterparty tx_init_rbf

Public commit record

What the developer wrote

Authored by Wilmer Paulino

73/100 · Adequate
Check channel is live while handling counterparty tx_init_rbf

This mirrors what we do for counterparty `splice_init` messages, making
sure we don't accept RBFs once a channel has requested shutdown.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds a safety check in the Lightning Dev Kit's code that handles a message called tx_init_rbf, which is used to propose bumping the fee on a channel's on-chain transaction. Before this change, the code did not verify that the channel was still 'live' (active and not shutting down). The fix rejects RBF requests once a channel has requested shutdown, matching an existing safeguard already in place for splice_init messages. The change prevents a counterparty from initiating fee-bump negotiations after shutdown has begun, which could otherwise lead to protocol confusion or inconsistent channel state.

Recommended action

Review whether other interactive-tx message handlers (e.g., tx_add_input, tx_add_output, tx_complete, tx_signatures) also need is_live() checks, and confirm that shutdown transitions correctly mark the channel as not live. Consider adding regression tests for RBF during shutdown.

Security signals we found

01

Missing state validation in protocol message handler

02

Shutdown/RBF state machine inconsistency

03

Peer-triggered error path (WarnAndDisconnect)

04

Mirrors existing splice_init safeguard pattern

Risk score

Why this scored 44/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 6/15
Affected reach 7/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.