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

wallet: record all coin movements into chain_moves or channel_moves tables.

Public commit record

What the developer wrote

Authored by Rusty Russell

73/100 · Adequate
wallet: record all coin movements into chain_moves or channel_moves tables.

We change notify_chain_mvt to wallet_save_chain_mvt, and
notify_channel_mvt to wallet_save_channel_mvt, which save to the db
and call the notifier themselves.

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

What changed, and why it matters

This change makes Core Lightning save every on-chain and channel coin movement to its internal database before sending out a notification. Previously, some coin movements were only notified and not persisted. It is an accounting/audit-logging improvement rather than a fix for an exploitable security flaw.

Recommended action

No immediate security action required. Treat as a normal reliability/auditability improvement. Reviewers may want to confirm the duplicate-notification path is intentional and documented, and verify database migration/schema support for chain_moves/channel_moves already exists.

Security signals we found

01

Persistent storage added for all coin movement events

02

Notification emission moved inside wallet persistence helper

03

Memory ownership change from explicit tal_free to take() in one call site

04

Duplicate-suppression path still notifies to preserve downstream behavior

Risk score

Why this scored 17/100

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