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. Thus, the sensible solution is to have the sender increment by the amount they expect to receive, using zero otherwise. This works as long as the sender isn't adding any additional CLTV delta for privacy reasons. If the sender is doing so, they can use the final CLTV field to communicate this. This change proposes this, which appears to reflect what some implementations do today.
- Loading branch information