]> git.bitcoin.ninja Git - rust-lightning/commit
Add `min_final_cltv_expiry` parameter to invoice utils
authorDuncan Dean <duncangleeddean@gmail.com>
Mon, 21 Nov 2022 12:53:52 +0000 (14:53 +0200)
committerDuncan Dean <duncangleeddean@gmail.com>
Tue, 24 Jan 2023 11:07:46 +0000 (13:07 +0200)
commit1d72e87e7829d86214f92936c8b4fdcd9fac8d50
tree43739f97e0b096704a9e63a2fa6a31c250b651ff
parentfb10fc9590dc2173cafbf5dcef3673b8dabcd386
Add `min_final_cltv_expiry` parameter to invoice utils

All utility functions for invoice construction will now also accept an
Option<>al `min_final_cltv_expiry_delta` which is useful for things like
swaps etc. The `min_final_cltv_expiry_delta` will default back to
`MIN_FINAL_CLTV_EXPIRY_DELTA` if `None` is provided.
lightning-invoice/src/lib.rs
lightning-invoice/src/payment.rs
lightning-invoice/src/utils.rs
lightning/src/ln/channelmanager.rs