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