Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct final_cltv handling in blinded paths
When paying a blinded path, we don't have a CLTV delta at each hop available, but rather only a total CLTV delta for the entire blinded path. However, the onion format currently still requires that we specify an `outgoing_cltv_value` for the final hop. As the sender, we don't have a sensible value to put there, as we don't know which part of the total CLTV delta belongs to the recipient. The sender is instructed to use the values that are known to them when setting `outgoing_cltv_value` for the final hop: - The current block height. - Any additional delta added to account for block propagation and improve privacy. This change reflects the behavior of some implementations at the time of writing.
- Loading branch information