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

tests: test RBF stops after closed tx is confirmed

Public commit record

What the developer wrote

Authored by enaples

60/100 · Adequate
tests: test RBF stops after closed tx is confirmed
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds a test that checks whether Core Lightning stops trying to replace (RBF) a penalty transaction once a replacement version has already been confirmed on the blockchain. The test documents a bug where the node would keep firing replacement attempts indefinitely because it looked up the wrong (stale) transaction ID and thought the original was still unconfirmed. The commit itself only adds a regression test, not the fix, so the actual vulnerability is in the pre-existing code being tested.

Recommended action

Review the corresponding fix (not present in this commit) to ensure `consider_onchain_rebroadcast` checks the confirmation height of the current in-flight/replacement transaction rather than the original stale txid. Run the new regression test against the pre-fix code to confirm it fails, and against the fixed code to confirm it passes. Monitor for related RBF termination logic in other on-chain paths.

Security signals we found

01

RBF loop does not terminate after replacement tx is confirmed

02

Use of stale original_txid instead of current in-flight txid for confirmation check

03

Indefinite rebroadcast of on-chain penalty transaction

04

Regression test added for a bug with direct security/fee-loss implications

Risk score

Why this scored 61/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 10/15
Affected reach 10/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.