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

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