routing: local balance check
This commit is contained in:
7 files changed
+250
-131
No files matched your search
@@ -678,6 +678,9 @@ func marshallFailureReason(reason channeldb.FailureReason) (
|
||||
|
||||
case channeldb.FailureReasonPaymentDetails:
|
||||
return PaymentState_FAILED_INCORRECT_PAYMENT_DETAILS, nil
|
||||
|
||||
case channeldb.FailureReasonInsufficientBalance:
|
||||
return PaymentState_FAILED_INSUFFICIENT_BALANCE, nil
|
||||
}
|
||||
|
||||
return 0, errors.New("unknown failure reason")
|
||||
|
||||
Reference in new issue
Block a user