mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
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.
11 lines
621 B
Text
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.
|
|
|