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

wallet: Throw an error in sendall if the tx size cannot be calculated

Public commit record

What the developer wrote

Authored by Ava Chow

50/100 · Thin
wallet: Throw an error in sendall if the tx size cannot be calculated
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit changes the Bitcoin Core wallet's 'sendall' RPC command so that instead of relying on an internal assumption that every coin's size is known, it explicitly checks whether the final transaction size can be calculated and throws a clear error if it cannot. Previously, the code used a non-fatal assertion that could be skipped in release builds, potentially allowing the command to proceed with an invalid or unknown transaction size when the wallet contained descriptors it could not fully solve.

Recommended action

Treat as a hardening/defensive fix. Review whether other RPC spend paths similarly rely on CHECK_NONFATAL or unchecked CalculateMaximumSignedTxSize return values, and consider applying the same explicit vsize==-1 error handling consistently across the wallet RPC layer.

Security signals we found

01

Removal of CHECK_NONFatal assertion in transaction size handling

02

Addition of explicit error for unsolvable descriptors

03

Prevents potential use of -1 vsize in downstream fee calculation

04

Hardens fee estimation path in wallet RPC

Risk score

Why this scored 32/100

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