mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-01-13 19:34:25 +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.