lnd.xprv/channeldb
Olaoluwa Osuntokun 630afbdc93
channeldb: don't return error from HasChannelEdge if single edge doesn't exist
This commit modifies the error propagating behavior within the
HasChannelEdge struct. Rather than exiting the function early when a
single edge isn’t found, we instead continue to also possibly retrieve
the second directional edge.

With this change, we avoid a potential infinite gossiping loop in the
routing package that would result if we’d seen one edge but not the
other. In this case the timestamps returned for *both* edges would
always be zero, causing the daemon to always accept and rebroadcast the
announcement putting all other connected lnd’s into the same loop.
2016-12-30 16:35:30 -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: ensure the edge index bucket is created during creation 2016-12-27 16:44:10 -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 method to lookup a channel ID by it's funding outpoint 2016-12-27 16:44:13 -08:00
graph.go channeldb: don't return error from HasChannelEdge if single edge doesn't exist 2016-12-30 16:35:30 -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: modify new payments module to match project code-style 2016-12-30 16:32:25 -08:00
payments.go channeldb: modify new payments module to match project code-style 2016-12-30 16:32:25 -08:00