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

common: fix values of enum mvt_tag since they're now embedded in the db.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
common: fix values of enum mvt_tag since they're now embedded in the db.

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 commit hardens how Core Lightning records coin-movement tags in its database. It locks the numeric values of an internal enum so future code changes cannot silently reorder them, adds a translation helper to ensure the stored database values stay stable, and validates tag sets before writing them. There is no direct exploit here; it is a defensive fix to prevent data corruption or accounting mismatches if the enum were ever changed.

Recommended action

No urgent action required. Treat as routine hardening. Reviewers should verify that all call sites writing mvt_tags to the database now use db_bind_mvt_tags() and that the BUILD_ASSERTs cover every enum member.

Security signals we found

01

Defensive hardening of persisted enum values

02

Addition of runtime validation before database writes

03

BUILD_ASSERTs to prevent future enum reordering

04

No memory safety, cryptographic, or network vulnerability evident

Risk score

Why this scored 17/100

Our methodology →
Potential impact 2/30
Exploitability 0/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.