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
- interface extraction and Phase 1 SQL
- full SQL implementation (Phase 2 SQL)
- KV→SQL migration.
- Potentially Optimizing/Stress-testing
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