Skip to content

[epic]: Channel State + Forwarding Log 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 Merged
#10790 chanstate: migrate consumers to Store interface Merged
#10808 chanstate: move OpenChannel behind store interface Open
#10809 chanstate: use open channel from consumers Open

Metadata

Metadata

Assignees

Labels

channelsepicIssues created to track large feature developmentsql
No fields configured for Feature.

Projects

Status

Todo

Status

In progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions