lnd/channeldb
2025-11-12 22:54:02 +08:00
..
migration multi: use the "errors" package everywhere 2025-06-30 09:46:55 +02:00
migration12 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration13 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration16 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration20 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration21 chore: fix some comments for struct field 2024-07-16 11:44:35 +08:00
migration23 multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
migration24 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration25 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration26 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration27 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration29 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration30 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration31 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration32 routing: fix mission control migration 2025-05-02 08:42:25 +02:00
migration33 multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
migration34 channeldb: add migration34 2025-06-21 09:20:17 +02:00
migration_01_to_11 linter: remove unsupported linters from the codebase 2025-11-12 22:54:02 +08:00
migtest multi: update walletdb package 2025-04-09 18:47:53 +02:00
addr_source.go multi: thread context through to AddrsForNode 2025-06-17 19:20:59 +02:00
addr_source_test.go multi: context.Background() -> t.Context() 2025-08-30 14:13:44 -03:00
channel.go channeldb: add MarkConfirmationHeight to OpenChannel 2025-09-11 18:26:16 +05:30
channel_test.go channeldb: add MarkConfirmationHeight to OpenChannel 2025-09-11 18:26:16 +05:30
codec.go multi: fix linter 2025-08-14 19:53:18 +02:00
db.go multi: move payment related code into own package 2025-08-14 19:53:15 +02:00
db_test.go graph/db+channeldb: rename test helper 2025-09-03 10:14:35 +02:00
error.go refactor: move graph related DB code to graph/db from channeldb 2024-11-28 13:36:13 +02:00
forwarding_log.go lnrpc: add filters to forwardhistoryrequest 2025-06-11 09:10:13 +05:30
forwarding_log_test.go lnrpc: add filters to forwardhistoryrequest 2025-06-11 09:10:13 +05:30
forwarding_package.go multi: revert back changes from 9911 2025-07-08 10:25:26 +02:00
forwarding_package_test.go multi: update walletdb package 2025-04-09 18:47:53 +02:00
forwarding_policy.go multi+refactor: move models package to graph/db 2024-11-28 13:34:33 +02:00
height_hint.go chainntnfs: move cache implementation to channeldb 2023-01-16 03:13:17 -08:00
height_hint_test.go multi: rename chan DB Open method to OpenForTesting 2024-11-28 13:51:15 +02:00
invoice_test.go channeldb+lnd: set invoice bucket tombstone after migration 2025-01-23 15:06:09 +01:00
invoices.go channeldb: export pagination method 2025-08-14 08:08:50 +02:00
legacy_serialization.go multi: update "funding locked" comments 2023-04-27 20:02:34 +02:00
log.go multi: Add decayedlog db migration code 2025-06-21 09:20:19 +02:00
meta.go channeldb: update optional migration code for multiple versions 2025-06-21 09:20:18 +02:00
meta_test.go multi: use the "errors" package everywhere 2025-06-30 09:46:55 +02:00
nodes.go channeldb+graph/db: move net.Addr encode/decode to graph db package 2024-11-28 13:34:08 +02:00
nodes_test.go multi: replace defer cleanup with t.Cleanup 2022-10-13 17:46:54 +08:00
options.go mulit: use kvdb.Backend for the kv payment db 2025-08-11 16:44:14 +02:00
paginate.go channeldb: export pagination method 2025-08-14 08:08:50 +02:00
peers.go chanfitness: exit early when there are no updates 2024-11-14 01:22:32 +08:00
peers_test.go multi: replace defer cleanup with t.Cleanup 2022-10-13 17:46:54 +08:00
README.md scripted-diff: replace ⛰ emoji with $ [skip ci] 2022-10-28 12:06:49 -04:00
reports.go channeldb/graphdb: move outpoint ser/deser funcs to graphdb 2024-11-28 13:34:08 +02:00
reports_test.go channeldb/graphdb: move outpoint ser/deser funcs to graphdb 2024-11-28 13:34:08 +02:00
revocation_log.go channeldb: add customized encoding for HtlcIndex 2025-06-06 19:55:59 +08:00
revocation_log_test.go channeldb+lnwallet: fix typo 2025-06-06 19:55:59 +08:00
setup_test.go channeldb/test: test with postgres 2021-10-29 10:54:44 +02:00
waitingproof.go multi: use the "errors" package everywhere 2025-06-30 09:46:55 +02:00
waitingproof_test.go multi: use the "errors" package everywhere 2025-06-30 09:46:55 +02:00
witness_cache.go multi: fix make fmt 2022-08-23 22:10:24 +08:00
witness_cache_test.go multi: replace defer cleanup with t.Cleanup 2022-10-13 17:46:54 +08:00

channeldb

Build Status MIT licensed GoDoc

The channeldb implements the persistent storage engine for lnd and generically a data storage layer for the required state within the Lightning Network. The backing storage engine is boltdb, an embedded pure-go key-value store based off of LMDB.

The package implements an object-oriented storage model with queries and mutations flowing through a particular object instance rather than the database itself. The storage implemented by the objects includes: open channels, past commitment revocation states, the channel graph which includes authenticated node and channel announcements, outgoing payments, and invoices

Installation and Updating

$  go get -u github.com/lightningnetwork/lnd/channeldb