From: Jeffrey Czyz Date: Wed, 7 Aug 2024 21:15:35 +0000 (-0500) Subject: Add pending changelog for Event::PaymentFailed X-Git-Tag: v0.0.124-beta~12^2~4 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=f00b782a1c0b07eee31a8f9101af0d271646f15c;p=rust-lightning Add pending changelog for Event::PaymentFailed --- 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).