mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-01-23 00:04:31 +01:00
This commit fixes an existing bug wherein we would incorrectly attempt to forward and HTLC to a link that wasn’t yet eligible for forwarding. This would occur when we’ve added a link to the switch, but haven’t yet received a FundingLocked message for the channel. As a result, the channel won’t have the next revocation point available. A logic error prior to this commit would skip tallying the largest bandwidth rather than skipping examining the link all together. Fixes #464.