]> git.bitcoin.ninja Git - rust-lightning/commit
Add reason to `Event::PaymentFailed`
authorAlec Chen <alecchendev@gmail.com>
Sat, 1 Apr 2023 00:07:57 +0000 (19:07 -0500)
committerAlec Chen <alecchendev@gmail.com>
Mon, 10 Apr 2023 22:13:47 +0000 (17:13 -0500)
commit23c70642b83e0207e8f0bfe7de2e20bcc878a60e
treef5fad6e9e0644b922191f03f396a7eda141cef22
parent432f0e678edf54dfff1dbb8aa4e9d7bf7febf17e
Add reason to `Event::PaymentFailed`

This includes adding a reason to `PendingOutboundPayment::Abandoned` and
using that reason when pushing an `Event::PaymentFailed`.
lightning/src/events/mod.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/outbound_payment.rs
lightning/src/ln/payment_tests.rs