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

wallet: make utxo order deterministic if CLN_DEV_ENTROPY_SEED set.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
wallet: make utxo order deterministic if CLN_DEV_ENTROPY_SEED set.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This change only affects Core Lightning when a special developer-only environment variable (CLN_DEV_ENTROPY_SEED) is set. It makes the order in which the wallet picks coins deterministic instead of random, which helps developers reproduce tests. In normal operation the wallet still picks coins randomly, so this commit does not introduce a security vulnerability for regular users.

Recommended action

No action required. Reviewers may want to confirm that CLN_DEV_ENTROPY_SEED cannot be enabled in production builds (developer mode is false), preserving random UTXO selection for live nodes.

Security signals we found

01

Conditional deterministic UTXO ordering gated on developer mode and CLN_DEV_ENTROPY_SEED

02

Default path retains existing random UTXO selection

03

No change to output status, reservation, or spending logic

04

No input validation, parsing, or cryptographic changes

Risk score

Why this scored 18/100

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