]> git.bitcoin.ninja Git - rust-lightning/commit
Make payment_hash optional in Event::PaymentFailed
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 6 Aug 2024 22:17:52 +0000 (17:17 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 14 Aug 2024 15:55:58 +0000 (10:55 -0500)
commit14153edeed100bc311bd1eca95ac4717c4d6583c
tree54dc7175f88ece11d9172c662d27e5116722c5b3
parent4567ce501a2f7c07670a0dbe6d3bd25a7ca5af1b
Make payment_hash optional in Event::PaymentFailed

When abandoning a BOLT12 payment before a Bolt12Invoice is received, an
Event::InvoiceRequestFailed is generated and the abandonment reason is
lost. Make payment_hash optional in Event::PaymentFailed so that
Event::InvoiceRequestFailed can be removed in favor of it.
lightning/src/events/mod.rs
lightning/src/ln/blinded_payment_tests.rs
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/offers_tests.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/outbound_payment.rs
lightning/src/ln/payment_tests.rs