rust-lightning/pending_changelog/1878.txt
Duncan Dean 5b53670172
Add new payment type and metadata bytes
Adds two new payment `Method`s for identifying payments with custom
`min_final_cltv_expiry_delta` as payments with LDK or user payment
hashes.

The `min_final_cltv_expiry_delta` value is packed into the first 2
bytes of the expiry timestamp in the payment secret metadata.
2023-01-24 21:01:27 +02:00

11 lines
621 B
Text

## API Updates
- The functions `inbound_payment::{create, create_from_hash}` and
`channelmanager::{create_inbound_payment, create_inbound_payment_for_hash}` now accept a
`min_final_cltv_expiry_delta` argument. This encodes the `min_final_cltv_expiry_delta` in the
payment secret metadata bytes to be validated on payment receipt.
## Backwards Compatibility
- If `min_final_cltv_expiry_delta` set for any of `inbound_payment::{create, create_from_hash}` or
`channelmanager::{create_inbound_payment, create_inbound_payment_for_hash}` then the payment will
not be receivable on versions of LDK prior to 0.0.114.