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

Don't load network graph twice on start-up (#3290)

Public commit record

What the developer wrote

Authored by Bastien Teinturier

91/100 · Strong
Don't load network graph twice on start-up (#3290)

We previously read the whole network graph from DB (channels and nodes)
twice: once before starting any actor to verify that the DB has not been
corrupted, and then again when initializing the `Router` actor.

We now keep the result of the first DB read instead of throwing it away
and provide it as argument to the `Router`, which doesn't need to read
from the DB on start-up anymore.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit is a performance and startup-time optimization for the Eclair Lightning node. It changes the startup sequence so the network graph (channels and nodes) is read from the database once instead of twice. The Router actor now receives the already-loaded data via a new Init message rather than loading it itself. There is no security vulnerability here; the change is purely about efficiency and code structure.

Recommended action

No security action required. This is a routine performance refactor. Reviewers may want to verify that the Router still correctly handles the Init message and that no code path creates a Router without sending Init, but the diff shows tests and Setup were updated consistently.

Security signals we found

01

No security-relevant behavior change identified

02

Refactoring of actor initialization order only

03

Removed router.init-timeout configuration option

Risk score

Why this scored 19/100

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