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

Merge pull request #10987 from spesmilo/fix_10986

Public commit record

What the developer wrote

Authored by ghost43

68/100 · Adequate
Merge pull request #10987 from spesmilo/fix_10986

transaction: treat native segwit input with non-empty witness as complete
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit fixes a bug where Electrum failed to recognize certain already-signed Bitcoin transactions as complete. Specifically, for native SegWit inputs, Bitcoin Core can produce a finalized PSBT with a valid witness but an empty scriptSig. Electrum's 'is this transaction complete?' check previously required a non-empty scriptSig for such inputs, so it wrongly treated these valid, signed transactions as incomplete. The fix adds a rule: if a native SegWit input has a non-empty witness, treat it as complete. This could have led users to try re-signing or re-broadcasting, or to confusion about whether a transaction was ready.

Recommended action

Review related completeness and signing flows to ensure no other input types (e.g., P2SH-P2WPKH, P2TR) have similar detection gaps. Consider adding more PSBT cross-implementation test vectors. Users should upgrade to include this fix if they handle PSBTs from Bitcoin Core or other wallets.

Security signals we found

01

Logic error in transaction completeness detection

02

Native SegWit witness handling edge case

03

PSBT interoperability issue with Bitcoin Core

04

Potential user-facing misclassification of signed transactions

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.