Currently, when we fail to find a route for a given payment, we update the payment store to PaymentFailed and return an error.
However, this means that the user won't be able to retry paying the same invoice as we'll of course avoid duplicate payments if we already have the payment hash in the store. This is maybe somewhat unnecessary in this case, as, when we fail to find a route, we never get to the point where the payment is sent out, hence we should be able to safely retry that payment.
Currently, when we fail to find a route for a given payment, we update the payment store to
PaymentFailedand return an error.However, this means that the user won't be able to retry paying the same invoice as we'll of course avoid duplicate payments if we already have the payment hash in the store. This is maybe somewhat unnecessary in this case, as, when we fail to find a route, we never get to the point where the payment is sent out, hence we should be able to safely retry that payment.