]> git.bitcoin.ninja Git - rust-lightning/commit
Rework auto retry send errors
authorValentine Wallace <vwallace@protonmail.com>
Fri, 10 Feb 2023 21:09:01 +0000 (15:09 -0600)
committerValentine Wallace <vwallace@protonmail.com>
Thu, 23 Feb 2023 20:50:23 +0000 (15:50 -0500)
commitd471d9746c234a31ff3431d17e89be9085994d40
tree059a43a3988013550934879d7af03963f8dfadae
parent5e4f0bcff0cea5e4c0652c2ef3c86ddc19585e21
Rework auto retry send errors

Prior to this, we returned PaymentSendFailure from auto retry send payment
methods. This implied that we might return a PartialFailure from them, which
has never been the case. So it makes sense to rework the errors to be a better
fit for the methods.

We're taking error handling in a totally different direction now to make it
more asynchronous, see send_payment_internal for more information.
lightning-invoice/src/payment.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/outbound_payment.rs
lightning/src/ln/payment_tests.rs