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

txbatcher: add TODOs re nLocktime block-height vs timestamp confusion

Public commit record

What the developer wrote

Authored by SomberNight

65/100 · Adequate
txbatcher: add TODOs re nLocktime block-height vs timestamp confusion

seems harmless atm but some rethinking is needed and checks should be added
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit adds comments and TODOs warning that the wallet code may be mixing up two different kinds of Bitcoin time locks: block heights and wall-clock timestamps. It also fixes some helper functions to explicitly return None instead of implicitly returning nothing. The commit itself says the issue 'seems harmless atm' but needs rethinking. There is no actual exploit shown, only a note that future checks are needed.

Recommended action

Treat this as a maintenance note rather than an active vulnerability. Developers should follow up by adding type tags or assertions distinguishing block-height from timestamp locktimes, especially in TxBatch locktime selection and SweepInfo.cltv_abs handling. Users do not need to take immediate action.

Security signals we found

01

TODO comments warning about nLocktime/CLTV block-height vs timestamp confusion

02

FIXME marking an existing locktime comparison as potentially unsafe

03

Explicit None returns in locktime helpers to avoid ambiguous implicit returns

Risk score

Why this scored 32/100

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