multi: rename to FailureReasonPaymentDetails

Prior name is too long XD
This commit is contained in:
Conner Fromknecht 2019-11-19 20:42:21 -08:00
parent e9eabed99c
commit 01cecb1f27
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7
4 changed files with 7 additions and 7 deletions

@ -101,9 +101,9 @@ const (
// payment. // payment.
FailureReasonError FailureReason = 2 FailureReasonError FailureReason = 2
// FailureReasonIncorrectPaymentDetails indicates that either the hash // FailureReasonPaymentDetails indicates that either the hash is unknown
// is unknown or the final cltv delta or amount is incorrect. // or the final cltv delta or amount is incorrect.
FailureReasonIncorrectPaymentDetails FailureReason = 3 FailureReasonPaymentDetails FailureReason = 3
// TODO(halseth): cancel state. // TODO(halseth): cancel state.
@ -120,7 +120,7 @@ func (r FailureReason) String() string {
return "no_route" return "no_route"
case FailureReasonError: case FailureReasonError:
return "error" return "error"
case FailureReasonIncorrectPaymentDetails: case FailureReasonPaymentDetails:
return "incorrect_payment_details" return "incorrect_payment_details"
} }

@ -645,7 +645,7 @@ func marshallFailureReason(reason channeldb.FailureReason) (
case channeldb.FailureReasonError: case channeldb.FailureReasonError:
return PaymentState_FAILED_ERROR, nil return PaymentState_FAILED_ERROR, nil
case channeldb.FailureReasonIncorrectPaymentDetails: case channeldb.FailureReasonPaymentDetails:
return PaymentState_FAILED_INCORRECT_PAYMENT_DETAILS, nil return PaymentState_FAILED_INCORRECT_PAYMENT_DETAILS, nil
} }

@ -142,7 +142,7 @@ func createFailedResult(rt *route.Route,
// In case of incorrect payment details, set the route. This can be used // In case of incorrect payment details, set the route. This can be used
// for probing and to extract a fee estimate from the route. // for probing and to extract a fee estimate from the route.
if reason == channeldb.FailureReasonIncorrectPaymentDetails { if reason == channeldb.FailureReasonPaymentDetails {
result.Route = rt result.Route = rt
} }

@ -11,7 +11,7 @@ import (
// Instantiate variables to allow taking a reference from the failure reason. // Instantiate variables to allow taking a reference from the failure reason.
var ( var (
reasonError = channeldb.FailureReasonError reasonError = channeldb.FailureReasonError
reasonIncorrectDetails = channeldb.FailureReasonIncorrectPaymentDetails reasonIncorrectDetails = channeldb.FailureReasonPaymentDetails
) )
// pairResult contains the result of the interpretation of a payment attempt for // pairResult contains the result of the interpretation of a payment attempt for