routing: new failure reason for cancelled payments

This commit is contained in:
Slyghtning committed 2024-08-01 10:24:08 +02:00
1 parent d18c4d61ce
commit 2e3c96f986
4 files changed
+18 -9

No files matched your search

+3
View File
@@ -1747,6 +1747,9 @@ func marshallPaymentFailureReason(reason *channeldb.FailureReason) (
case channeldb.FailureReasonInsufficientBalance:
return lnrpc.PaymentFailureReason_FAILURE_REASON_INSUFFICIENT_BALANCE, nil
case channeldb.FailureReasonCanceled:
return lnrpc.PaymentFailureReason_FAILURE_REASON_CANCELED, nil
}
return 0, errors.New("unknown failure reason")