lnd/channeldb
Olaoluwa Osuntokun cbd26b35e0
channeldb: deleting a channel twice no longer triggers an error
This commit adds an additional check within CloseChannel to ensure that
sub-systems attempting to delete the channel one after the other (in
the event of any sort of closure) doesn’t result in an extraneous
error.

To fix this, we now check if the channel exists before attempting a
deletion. If the channel doesn’t exist, then we simply exit early with
a nil error.
2016-12-27 16:43:10 -08:00
..
channel.go channeldb: deleting a channel twice no longer triggers an error 2016-12-27 16:43:10 -08:00
channel_test.go channeldb: add TheirDustLimit and OurDustLimit fields in OpenChannel 2016-12-13 11:01:57 -08:00
db.go channeldb: add storage of an on-disk directed channel graph 2016-12-07 22:50:19 -08:00
db_test.go channeldb: remove hardcoded netparams 2016-04-24 12:35:52 -07:00
doc.go channeldb: create new channeldb package, update lnwallet to use new API 2015-12-26 12:35:15 -06:00
error.go channeldb: save outgoing payments 2016-12-27 16:16:23 -08:00
fees.go channeldb: create new channeldb package, update lnwallet to use new API 2015-12-26 12:35:15 -06:00
graph.go channeldb: add option to re-use existing db transaction for graph traversals 2016-12-27 16:43:00 -08:00
graph_test.go channeldb: add option to re-use existing db transaction for graph traversals 2016-12-27 16:43:00 -08:00
invoice_test.go channeldb: store optional invoice fields as variable length byte arrays 2016-09-23 15:15:26 -07:00
invoices.go channeldb: refactor payments code 2016-12-27 16:42:56 -08:00
log.go multi: create lnd's logging infrastructure 2016-03-22 18:43:10 -07:00
meta.go channeldb: slightly refactor the [Fetch|Put]Meta methods 2016-11-27 18:44:23 -08:00
meta_test.go channeldb: slightly refactor the [Fetch|Put]Meta methods 2016-11-27 18:44:23 -08:00
nodes.go channeldb: properly check for a nil bucket when fetching LinkNodes 2016-12-14 17:49:11 -08:00
nodes_test.go channeldb: add bucket for storing p2p counterparty meta-data 2016-10-25 16:06:32 -07:00
payments.go channeldb: refactor payments code 2016-12-27 16:42:56 -08:00
payments_test.go channeldb: refactor payments code 2016-12-27 16:42:56 -08:00