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

txbatcher: to_sweep_now should be a list

Public commit record

What the developer wrote

Authored by ThomasV

45/100 · Thin
txbatcher: to_sweep_now should be a list
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit is a small internal cleanup in Electrum's transaction batching code. It changes how sweep inputs are tracked—from using string-based keys to using proper transaction-outpoint objects and lists. The change appears to prevent a potential mismatch or bug where the wrong input could be removed from a batch, but it is not a clear, exploitable security vulnerability on its own. It is more likely a correctness/robustness fix.

Recommended action

Treat as a routine correctness fix. Reviewers should verify that all callers of _to_sweep_after and _create_batch_tx handle the new types correctly, and confirm no remaining string-keyed lookups on batch_inputs elsewhere. No urgent security response is indicated by the diff alone.

Security signals we found

01

Type annotation change from Dict[str, SweepInfo] to Dict[TxOutpoint, SweepInfo]

02

Added assert prevout == v.txin.prevout to enforce key/value consistency

03

Changed to_sweep_now from dict to list, removing string-keyed intermediate

04

Existing comment indicates prior pop-by-key could trigger assert error

05

No explicit security disclosure, CVE, or researcher attribution in commit

Risk score

Why this scored 23/100

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