lnd/channeldb/migration_01_to_11
Joost Jager 6e463c1634
channeldb: make copy for migrations
This commit is a direct copy of the complete channeldb package. It only
changes the package declaration at the top of every file. We make this
full copy so that review can be focused on the actual changes made.
Otherwise changes may drown in all the file moves.

Linting for the new package is disabled, as it contains lots of
pre-existing issues.
2019-10-24 12:49:38 +02:00
..
addr_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
addr.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
channel_cache_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
channel_cache.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
channel_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
channel.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
codec.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
db_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
db.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
doc.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
error.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
fees.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
forwarding_log_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
forwarding_log.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
forwarding_package_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
forwarding_package.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
graph_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
graph.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
invoice_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
invoices.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
legacy_serialization.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
log.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
meta_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
meta.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
migration_09_legacy_serialization.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
migration_10_route_tlv_records.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
migration_11_invoices_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
migration_11_invoices.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
migrations_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
migrations.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
nodes_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
nodes.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
options.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
payment_control_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
payment_control.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
payments_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
payments.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
README.md channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
reject_cache_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
reject_cache.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
waitingproof_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
waitingproof.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
witness_cache_test.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02:00
witness_cache.go channeldb: make copy for migrations 2019-10-24 12:49:38 +02: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