mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-01-22 07:44:21 +01:00
In this commit, we update the failure case within handleLocalDispatch to handle locally sourced resolutions. This is the case that we send a payment out, but before it can even get past the first hop, we need to go to chain (may have been a cascading failure). Once the HTLC is fully resolved, we’ll send back a resolution message, however, that message doesn’t have a failure reason populated. To properly handle this, we’ll send back a permanent channel failure to the router.