lnd.xprv/channeldb
Olaoluwa Osuntokun 42c90794ac
channeldb: return proper error in ChannelGraph.ForEachChannel()
This commit fixes a minor bug in the ForEachChannel method of the
ChannelGraph struct. Rather than ErrGraphNoEdgesFound being returned if
either of the edge related buckets hadn’t been created yet,
ErrGraphNodesNotFound was being returned.

To fix this bug, we now properly return ErrGraphNoEdgesFound.
Additionally a mental note to roasbeef has been left as the current
code currently assumes that eventually both directions of the channel
edge will be advertised. However, this may not necessarily be the case
in a live network, since a side chooses to preferentially advertise a
channel or not.
2016-12-27 16:43:53 -08:00
..
channel_test.go channeldb: Open is no longer dependant on a specific set of chain params 2016-12-27 16:43:19 -08:00
channel.go channeldb: add HasLightningNode+HasChannelEdge methods to ChannelGraph 2016-12-27 16:43:29 -08:00
db_test.go channeldb: Open is no longer dependant on a specific set of chain params 2016-12-27 16:43:19 -08:00
db.go channeldb: Open is no longer dependant on a specific set of chain params 2016-12-27 16:43:19 -08: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: add support for channel graph pruning 2016-12-27 16:43:12 -08:00
fees.go channeldb: create new channeldb package, update lnwallet to use new API 2015-12-26 12:35:15 -06:00
graph_test.go channeldb: add HasLightningNode+HasChannelEdge methods to ChannelGraph 2016-12-27 16:43:29 -08:00
graph.go channeldb: return proper error in ChannelGraph.ForEachChannel() 2016-12-27 16:43:53 -08:00
invoice_test.go channeldb: ensure the cleanUp func is always run during tests 2016-12-27 16:43:17 -08: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_test.go channeldb: ensure the cleanUp func is always run during tests 2016-12-27 16:43:17 -08:00
meta.go channeldb: slightly refactor the [Fetch|Put]Meta methods 2016-11-27 18:44:23 -08:00
nodes_test.go channeldb: add bucket for storing p2p counterparty meta-data 2016-10-25 16:06:32 -07:00
nodes.go channeldb: properly check for a nil bucket when fetching LinkNodes 2016-12-14 17:49:11 -08:00
payments_test.go channeldb: refactor payments code 2016-12-27 16:42:56 -08:00
payments.go channeldb: refactor payments code 2016-12-27 16:42:56 -08:00