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

wallet: sanity check ring indices only against spendable

Public commit record

What the developer wrote

Authored by jeffro256

50/100 · Thin
wallet: sanity check ring indices only against spendable
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit tightens a sanity check in the Monero wallet when it selects decoy ring members for a transaction. Previously, the wallet compared selected outputs against the total number of recently confirmed outputs (the top of the 'rct_offsets' list). Now it compares against only outputs old enough to be considered spendable. This avoids incorrectly rejecting valid transactions or, potentially, accepting risky ones when the very newest outputs are not yet spendable. The change is small and defensive.

Recommended action

Review the tx_sanity_check() implementation to confirm it behaves correctly when given the reduced spendable-only count, and ensure no other call sites use the old total-recent-output pattern incorrectly. Consider adding unit tests for edge cases near CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE.

Security signals we found

01

Sanity check boundary changed from total recent outputs to spendable-only outputs

02

Potential for incorrect ring member validity decisions when spendable age is not reached

03

Defensive hardening in transaction output selection

Risk score

Why this scored 44/100

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