multi: rename to FailureReasonPaymentDetails
Prior name is too long XD
This commit is contained in:
parent
e9eabed99c
commit
01cecb1f27
@ -101,9 +101,9 @@ const (
|
||||
// payment.
|
||||
FailureReasonError FailureReason = 2
|
||||
|
||||
// FailureReasonIncorrectPaymentDetails indicates that either the hash
|
||||
// is unknown or the final cltv delta or amount is incorrect.
|
||||
FailureReasonIncorrectPaymentDetails FailureReason = 3
|
||||
// FailureReasonPaymentDetails indicates that either the hash is unknown
|
||||
// or the final cltv delta or amount is incorrect.
|
||||
FailureReasonPaymentDetails FailureReason = 3
|
||||
|
||||
// TODO(halseth): cancel state.
|
||||
|
||||
@ -120,7 +120,7 @@ func (r FailureReason) String() string {
|
||||
return "no_route"
|
||||
case FailureReasonError:
|
||||
return "error"
|
||||
case FailureReasonIncorrectPaymentDetails:
|
||||
case FailureReasonPaymentDetails:
|
||||
return "incorrect_payment_details"
|
||||
}
|
||||
|
||||
|
@ -645,7 +645,7 @@ func marshallFailureReason(reason channeldb.FailureReason) (
|
||||
case channeldb.FailureReasonError:
|
||||
return PaymentState_FAILED_ERROR, nil
|
||||
|
||||
case channeldb.FailureReasonIncorrectPaymentDetails:
|
||||
case channeldb.FailureReasonPaymentDetails:
|
||||
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
|
||||
// for probing and to extract a fee estimate from the route.
|
||||
if reason == channeldb.FailureReasonIncorrectPaymentDetails {
|
||||
if reason == channeldb.FailureReasonPaymentDetails {
|
||||
result.Route = rt
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
// Instantiate variables to allow taking a reference from the failure reason.
|
||||
var (
|
||||
reasonError = channeldb.FailureReasonError
|
||||
reasonIncorrectDetails = channeldb.FailureReasonIncorrectPaymentDetails
|
||||
reasonIncorrectDetails = channeldb.FailureReasonPaymentDetails
|
||||
)
|
||||
|
||||
// pairResult contains the result of the interpretation of a payment attempt for
|
||||
|
Loading…
Reference in New Issue
Block a user