djkazic 1542424782 invoices: if there are no invoices make gc noop 2 weeks ago
..
migration 619c8f4eb8 multi: repleace ioutil.ReadAll 3 weeks ago
migration12 14c851c8fc kvdb: move channeldb/kvdb to top level 3 years ago
migration13 14c851c8fc kvdb: move channeldb/kvdb to top level 3 years ago
migration16 14c851c8fc kvdb: move channeldb/kvdb to top level 3 years ago
migration20 14c851c8fc kvdb: move channeldb/kvdb to top level 3 years ago
migration21 648fb22f63 multi: wrap all errors 1 month ago
migration23 895a2e497b multi: formatting and comment fixes 2 years ago
migration24 8b289e79f5 channeldb+migration: export commonly used methods 2 years ago
migration25 648fb22f63 multi: wrap all errors 1 month ago
migration26 cd566eb097 multi: fix fmt.Errorf error wrapping 2 months ago
migration27 648fb22f63 multi: wrap all errors 1 month ago
migration29 c9f5912601 channeldb: BigSize migration, store zero-conf, scid-alias bits 1 year ago
migration30 648fb22f63 multi: wrap all errors 1 month ago
migration31 87fc58ecfe multi: Add a channel.db migration. 9 months ago
migration_01_to_11 648fb22f63 multi: wrap all errors 1 month ago
migtest 70e3f8f511 multi: pass in a MigrationConfig to all optional migrations 1 year ago
models e8c97deaef htlcswitch: add receiver-side inbound fee support 1 month ago
README.md 0b1e881d18 scripted-diff: replace ⛰ emoji with $ [skip ci] 1 year ago
addr.go 6a3e1423d2 channeldb/addr: sanity check onion address length before writing to db 5 years ago
addr_test.go 8af2473644 channeldb/addr_test: add tests for invalid onion addresses 5 years ago
channel.go f090a64142 multi: add blinding point to payment descriptor and persist 1 month ago
channel_cache.go b20a254faa channeldb/channel_cache: add channelCache w/ randomized eviction 5 years ago
channel_cache_test.go 84cdcd6847 multi: move DB schemas to channeldb/models 6 months ago
channel_test.go f090a64142 multi: add blinding point to payment descriptor and persist 1 month ago
codec.go 648fb22f63 multi: wrap all errors 1 month ago
db.go 648fb22f63 multi: wrap all errors 1 month ago
db_test.go db39a905cb multi: make NewChanIDFromOutpoint accept value instead of pointer 2 months ago
duplicate_payments.go 21cecc40e1 channeldb: return error when payment is not found in duplicate payments 7 months ago
error.go 0193274c10 multi: return error from MarkEdgeLive if not found 6 months ago
forwarding_log.go 530a2059e5 multi: Fix typos [skip ci] 2 years ago
forwarding_log_test.go c70e39cd21 multi: replace defer cleanup with `t.Cleanup` 1 year ago
forwarding_package.go 3d50edf9f8 channeldb: add method to wipe all forwarding packages 2 years ago
forwarding_package_test.go fe8784aa0c channeldb: fix race in TestPackager by removing global test var 2 weeks ago
forwarding_policy.go 59b5fb1565 channeldb+funding: move policy encoding into channel DB 8 months ago
graph.go 120d6dd297 channeldb: explicitly catch error in pruneGraphNodes 1 month ago
graph_cache.go 0bae781785 routing: add inbound fee support to pathfinding 1 month ago
graph_cache_test.go 0bae781785 routing: add inbound fee support to pathfinding 1 month ago
graph_test.go 0bae781785 routing: add inbound fee support to pathfinding 1 month ago
height_hint.go c602ac07e7 chainntnfs: move cache implementation to channeldb 1 year ago
height_hint_test.go c602ac07e7 chainntnfs: move cache implementation to channeldb 1 year ago
invoice_test.go 5e746b4d2c invoices: move InvoiceDB tests unrelated to kvdb to invoices package 2 months ago
invoices.go 1542424782 invoices: if there are no invoices make gc noop 2 weeks ago
legacy_serialization.go 9ea3f55694 multi: update "funding locked" comments 1 year ago
log.go 87fc58ecfe multi: Add a channel.db migration. 9 months ago
meta.go 7e76326b97 channeldb: export DB migration related functions 1 year ago
meta_test.go 70e3f8f511 multi: pass in a MigrationConfig to all optional migrations 1 year ago
mp_payment.go da8f1c084a channeldb+routing: add new interface method `TerminalInfo` 6 months ago
mp_payment_test.go e8c0226e1c routing: add `AllowMoreAttempts` to decide whether more attempts are allowed 6 months ago
nodes.go 0735522194 multi: fix `make fmt` 1 year ago
nodes_test.go c70e39cd21 multi: replace defer cleanup with `t.Cleanup` 1 year ago
options.go 0730337cc7 multi: add new NoRevLogAmtData config option 1 year ago
options_test.go 895a2e497b multi: formatting and comment fixes 2 years ago
paginate.go 895a2e497b multi: formatting and comment fixes 2 years ago
payment_control.go 648fb22f63 multi: wrap all errors 1 month ago
payment_control_test.go 0609431a0c channeldb: fix payment control unit tests w/ errors.Is 1 month ago
payment_status.go 390f3c8253 channeldb: expand PaymentStatus to explicitly represent payment status 7 months ago
payment_status_test.go fac6044501 channeldb: add unit test for `decidePaymentStatus` 7 months ago
payments.go 648fb22f63 multi: wrap all errors 1 month ago
payments_test.go 605211823d multi: fix timestamp filters for payment query 3 months ago
peers.go 14c851c8fc kvdb: move channeldb/kvdb to top level 3 years ago
peers_test.go c70e39cd21 multi: replace defer cleanup with `t.Cleanup` 1 year ago
reject_cache.go af0ea3590b channeldb/reject_cache: add rejectCache w/ randomized eviction 5 years ago
reject_cache_test.go af0ea3590b channeldb/reject_cache: add rejectCache w/ randomized eviction 5 years ago
reports.go 7dfe4018ce multi: use btcd's btcec/v2 and btcutil modules 2 years ago
reports_test.go c70e39cd21 multi: replace defer cleanup with `t.Cleanup` 1 year ago
revocation_log.go 2c786ec66f channeldb: add local and remote balance to revocation log 1 year ago
revocation_log_test.go 2c786ec66f channeldb: add local and remote balance to revocation log 1 year ago
setup_test.go d997bbf6b3 channeldb/test: test with postgres 2 years ago
waitingproof.go dfdc2bff8b multi: run gosimports 2 years ago
waitingproof_test.go c70e39cd21 multi: replace defer cleanup with `t.Cleanup` 1 year ago
witness_cache.go 0735522194 multi: fix `make fmt` 1 year ago
witness_cache_test.go c70e39cd21 multi: replace defer cleanup with `t.Cleanup` 1 year ago

README.md

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