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

gossipd: compact when gossip store is 80% deleted records.

Public commit record

What the developer wrote

Authored by Rusty Russell

73/100 · Adequate
gossipd: compact when gossip store is 80% deleted records.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: `gossipd` now uses a `lightning_gossip_compactd` helper to compact the gossip_store on demand, keeping it under about 210MB.
✓ 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 the Lightning node's gossip database automatically shrink itself when it becomes bloated with old, deleted records. It also fixes a small bug where the wrong file descriptor was being closed during that cleanup process. There is no direct evidence this is a security fix, but uncontrolled file growth and incorrect descriptor handling can contribute to reliability or minor resource problems.

Recommended action

Treat as a routine maintenance/reliability improvement. Review whether the descriptor bug could leak a pipe fd or cause helper misbehavior under error paths, but no immediate security response is indicated.

Security signals we found

01

Resource-consumption mitigation: prevents unbounded growth of gossip_store

02

Descriptor-handling bug fix: closing wrong pipe fd in child process

03

No vendor security framing: commit message and changelog describe performance/maintenance, not security

Risk score

Why this scored 19/100

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