Uh oh!
There was an error while loading. Please reload this page.
Clarify final cltv expiry computation in route blinding - #1069
Conversation
Good point, that's something I also brought up a while ago: Bolt 12 doesn't expose the It's a bit messy to have to go from blocks to timestamps, but timestamps are more user-friendly when displayed on a commercial website, so we'll probably have to live with that... @rustyrussell does that match what you had in mind? |
valentinewallace
commented
May 8, 2023
Right, thanks! I updated the PR description with your original offers comment thread on this topic. |
carlaKC
commented
Jun 21, 2023
In the case where an invoice has an expiry < 5 minutes do we assume the current height is the |
t-bast
commented
Jun 22, 2023
Good point, we'll probably want to create invoices with a very short expiry when responding to an |
t-bast
commented
Aug 10, 2023
@valentinewallace can you rebase the last commit on top of |
BOLT 12 invoices do not include a max_cltv_expiry field, so it's good to clarify how senders can compute the final outgoing cltv expiry.
a48cfdc to
f271735Compare
Based on #1066, see its PR description.
Here we follow-on that change by clarifying the computation of the final
outgoing_cltv_valuewhen paying to a blinded route.I've been implementing route blinding for LDK, and these comments would have alleviated my confusion on how to get the final expiry, so hopefully it seems helpful to others too.
For context, I got the conversion from invoice expiry to CLTV expiry from this offers discussion: https://github.com/lightning/bolts/pull/798/files#r1053000804