mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
Make attempting to retry a succeeded payment an APIError, not Route
This is symmetric with the new failure once a payment is abandoned.
This commit is contained in:
parent
3086bd8c8e
commit
05d7a33a58
1 changed files with 2 additions and 2 deletions
|
@ -2393,8 +2393,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
|
|||
}))
|
||||
},
|
||||
PendingOutboundPayment::Fulfilled { .. } => {
|
||||
return Err(PaymentSendFailure::ParameterError(APIError::RouteError {
|
||||
err: "Payment already completed"
|
||||
return Err(PaymentSendFailure::ParameterError(APIError::APIMisuseError {
|
||||
err: "Payment already completed".to_owned()
|
||||
}));
|
||||
},
|
||||
PendingOutboundPayment::Abandoned { .. } => {
|
||||
|
|
Loading…
Add table
Reference in a new issue