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

splice script: Turn “wallet -> *” into “wallet -> 100%”

Public commit record

What the developer wrote

Authored by Dusty Daemon

73/100 · Adequate
splice script: Turn “wallet -> *” into “wallet -> 100%”

Treat the `*` as if it were `100%` for wallets.

100% is a special case that means “100% of needed funds” not “100% of wallet funds.” since taking out all of the wallet’s inputs is wasteful.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes how the Core Lightning splicing tool interprets a wallet wildcard ('*'). Previously, the '*' value was stored as a special maximum number (UINT32_MAX) and could behave differently than intended. The change forces '*' to mean 'contribute 100% of the funds needed' rather than potentially being misread as a literal huge percentage. This prevents a splice request from accidentally trying to allocate an impossibly large share of funds, which could cause the splice to fail or behave unexpectedly.

Recommended action

Review related splice parser and state machine code to ensure no other sentinel values are interpreted literally. Add regression tests covering '*' and '100%' wallet contribution paths. Consider validating out_ppm bounds earlier in input parsing.

Security signals we found

01

Input normalization of a sentinel/wildcard value

02

Prevention of misinterpretation of UINT32_MAX as a literal ppm value

03

Avoids potential crash or incorrect transaction construction during splice execution

Risk score

Why this scored 35/100

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