Skip to content

[epic]: Channel State SQL Migration #10680

@ziggie1984

Description

@ziggie1984

Migrate LND's channel state storage from bbolt (key/value) to native SQL, completing the transition already done for graph, payments, and invoices. This covers the full channel lifecycle: static metadata, current commitment state, forwarding packages, and the revocation log — the dominant storage consumer due to every payment attempt (including failures) advancing commitment height.

The general plan to accomplish this work is splitted into 3 phases

  1. interface extraction and Phase 1 SQL
  2. full SQL implementation (Phase 2 SQL)
  3. KV→SQL migration.
  4. Potentially Optimizing/Stress-testing

Tracking

Phase 1 — Interface extraction

PR Description Status
#10777 chanstate: introduce Store interface Open
#10790 chanstate: migrate consumers to Store interface Open

Metadata

Metadata

Assignees

Labels

channelsepicIssues created to track large feature developmentsql

Projects

Status

Todo

Status

In progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions