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

gossipd: code to invoke compactd and reopen store.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
gossipd: code to invoke compactd and reopen store.

This isn't called anywhere yet.

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 adds new internal plumbing for a future 'gossip store compaction' feature in Core Lightning. It introduces a helper sub-daemon called lightning_gossip_compactd and functions to reopen the gossip store, but the commit message explicitly says this code is 'not called anywhere yet.' There is no immediate security issue visible in the diff, but it is a partial foundation for a feature that will later rewrite a persistent data file and spawn an external helper process.

Recommended action

No immediate action required; this is a feature foundation commit. When the compaction feature is completed and enabled, review the helper's input validation, the atomicity of the rename/reopen sequence, and the handling of concurrent gossip_store writes to ensure the live store cannot be corrupted or replaced with attacker-controlled content.

Security signals we found

01

New external helper execution path added (execlp of compactd_helper)

02

fork()/dup2()/closefrom() plumbing introduced for future compaction

03

File rename of compacted store over live GOSSIP_STORE_FILENAME planned

04

gossip_store_reopen() added to switch to rewritten on-disk store

05

Commit explicitly notes new functionality is not called anywhere yet

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.