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

add dust_override to SweepInfo

Public commit record

What the developer wrote

Authored by ThomasV

50/100 · Thin
add dust_override to SweepInfo

We might want to set this value independently from is_anchor.
✓ Descriptive subject✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit changes how Electrum decides whether a tiny ("dust") Lightning Network sweep output is worth including in a transaction. Previously, the code only skipped the dust check for anchor outputs. Now it uses a new explicit flag, `dust_override`, so other sweep types can also skip the dust check when appropriate. The change itself is a small refactor and does not obviously introduce a security bug, but it adjusts a safety check that prevents creating uneconomical or non-standard transactions.

Recommended action

Review the specific sweep types marked `dust_override=True` to confirm they are intentionally allowed to produce outputs below the dust limit, and verify that this does not lead to non-standard or uneconomical transactions being broadcast. Consider adding tests covering the new flag and edge cases around dust outputs.

Security signals we found

01

Change to dust-limit logic in transaction batching

02

New boolean override flag added to a core sweep data structure

03

Some non-anchor sweeps now bypass the dust check

04

No explicit security rationale or CVE reference in commit message

Risk score

Why this scored 26/100

Our methodology →
Potential impact 5/30
Exploitability 3/25
Stealth signal 4/15
Affected reach 5/15
Confidence 6/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.