mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-21 06:06:20 +02:00
routing: fail attempt when no shard is found or circuit generation fails
This commit is contained in:
@@ -1000,6 +1000,8 @@ func (s *Switch) extractResult(deobfuscator ErrorDecrypter, n *networkResult,
|
||||
// We've received a fail update which means we can finalize the
|
||||
// user payment and return fail response.
|
||||
case *lnwire.UpdateFailHTLC:
|
||||
// TODO(yy): construct deobfuscator here to avoid creating it
|
||||
// in paymentLifecycle even for settled HTLCs.
|
||||
paymentErr := s.parseFailedPayment(
|
||||
deobfuscator, attemptID, paymentHash, n.unencrypted,
|
||||
n.isResolution, htlc,
|
||||
|
Reference in New Issue
Block a user