From f00b782a1c0b07eee31a8f9101af0d271646f15c Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Wed, 7 Aug 2024 16:15:35 -0500 Subject: [PATCH] Add pending changelog for Event::PaymentFailed --- .../3192-invoice-request-failed-event.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pending_changelog/3192-invoice-request-failed-event.txt diff --git a/pending_changelog/3192-invoice-request-failed-event.txt b/pending_changelog/3192-invoice-request-failed-event.txt new file mode 100644 index 000000000..f1ab8df5b --- /dev/null +++ b/pending_changelog/3192-invoice-request-failed-event.txt @@ -0,0 +1,12 @@ +## API Updates + * `Event::PaymentFailed` now uses an `Option` for its payment hash, which will + be `None` if the invoice hasn't been received yet for a BOLT12 payment + (#3192). + * `Event::PaymentFailed` is now generated instead `Event::InvoiceRequestFailed`, + which has been removed. When deserialized the latter will be converted to the + former with `None` for the payment hash (#3192). + +## Backwards Compatibility + * Any `Event::PaymentFailed` generated without a payment hash will deserialize + with `PaymentHash([0; 32])` when downgrading. This can be treated like an + `Event::InvoiceRequestFailed` (#3192). -- 2.39.5