mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-18 00:41:05 +02: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.