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

Set funding_seen_onchain=true in filter_block

Public commit record

What the developer wrote

Authored by Martin Saposnic

60/100 · Adequate
Set funding_seen_onchain=true in filter_block

Marks funding_seen_onchain when we see the funding tx confirm.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit fixes a bookkeeping flag in the Lightning channel monitor. The flag `funding_seen_onchain` was not being set when the funding transaction was observed on the blockchain, even though the code already detected it. Setting the flag correctly helps the monitor know the channel is real on-chain and may affect later safety decisions, such as whether to accept certain updates or how to handle edge cases during channel closure.

Recommended action

Treat as a correctness fix worth including in a release. Review all downstream checks that read `funding_seen_onchain` to confirm whether stale state could have led to unsafe behavior, such as accepting revoked commitments or mishandling force-close scenarios. No immediate emergency response is indicated from the diff alone.

Security signals we found

01

State flag not updated despite on-chain detection

02

Channel monitor internal consistency fix

03

Could affect safety checks that depend on funding_seen_onchain

Risk score

Why this scored 43/100

Our methodology →
Potential impact 12/30
Exploitability 5/25
Stealth signal 8/15
Affected reach 10/15
Confidence 5/10
Evidence quality 3/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.