-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix blinded path
min_final_expiry_delta
check (#2678)
The spec says that we must return an error if: - cltv_expiry < outgoing_cltv_value - cltv_expiry < current_block_height + min_final_cltv_expiry_delta For the second check, we actually tested if: - cltv_expiry < max(outgoing_cltv_value, current_block_height) + min_final_cltv_expiry_delta But that check should only verify that our `min_final_expiry_delta` requirement is fulfilled, which is unrelated to the `outgoing_cltv_value`. It was redundant with the first check, which already guarantees that intermediate nodes inside the blinded path cannot cheat by using a higher `cltv_expiry_delta` than what the recipient intended.
- Loading branch information
Showing
3 changed files
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters