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

commands: use format_satoshis consistently. don't use sci-notation

Public commit record

What the developer wrote

Authored by SomberNight

65/100 · Adequate
commands: use format_satoshis consistently. don't use sci-notation

old behaviour:
```
>>> from electrum.commands import format_satoshis
>>> format_satoshis(1)
'1E-8'
```
✓ Specific, 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 formatting bug in Electrum's command-line output where very small bitcoin amounts were displayed in scientific notation (like '1E-8' instead of '0.00000001'). This is a usability and correctness fix that makes wallet balances and transaction values display consistently. It is not a direct security vulnerability, but scientific notation in financial outputs could theoretically confuse users or downstream scripts that parse amounts.

Recommended action

No urgent action required. This is a low-risk correctness/usability fix. Users and integrators relying on Electrum's JSON-RPC or command-line output should verify that downstream parsers handle the new fixed-point format correctly, especially for very small or zero amounts.

Security signals we found

01

Output formatting bug could cause user/script misinterpretation of amounts

02

Scientific notation in financial amounts is non-standard and potentially misleading

03

Fix centralizes formatting logic to reduce future inconsistencies

04

No cryptographic, network, or privilege-boundary changes observed

Risk score

Why this scored 23/100

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