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

channeldb: make waiting proof migration repeatable

Public commit record

What the developer wrote

Authored by Elle Mouton

73/100 · Adequate
channeldb: make waiting proof migration repeatable

Allow migration 35 to skip records that are already keyed using the typed
waiting proof format. This lets the missing-version recovery path safely run
migration 35 on DBs that were created directly by v0.21 and may already contain
typed waiting proofs.

Legacy 9-byte records are still migrated and unexpected key shapes still fail.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a database migration in LND so it can safely run twice. Previously, if a certain recovery process re-ran migration 35 on a database that already had newer-format 'waiting proof' records, the migration would likely fail or corrupt data. The fix makes the migration skip already-updated records while still converting old-format records. It is a robustness improvement, not a remote attack vector.

Recommended action

Include this fix in releases that support the missing-version recovery path. Users on v0.21+ who have run migration 35 and may use recovery tooling should upgrade before running recovery. No immediate remote mitigation is required.

Security signals we found

01

Database migration idempotency/robustness fix

02

Potential data corruption or node startup failure if migration re-run against mixed-format bucket

03

No input validation of attacker-controlled data; issue is local/state-recovery only

Risk score

Why this scored 22/100

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