mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-03 17:26:57 +01:00
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. |
||
---|---|---|
.. | ||
channel.go | ||
channel_test.go | ||
db.go | ||
db_test.go | ||
doc.go | ||
error.go | ||
fees.go | ||
graph.go | ||
graph_test.go | ||
invoice_test.go | ||
invoices.go | ||
log.go | ||
meta.go | ||
meta_test.go | ||
nodes.go | ||
nodes_test.go | ||
payments.go | ||
payments_test.go |