forked from lightningnetwork/lnd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
htlcswitch: properly verify OutgoingCTLV+Timeout when final hop in link
This commit fixes an existing bug in the way we perform validation of the timelock information as the final hop in the route. Previously, we would assert that the outgoing time lock in the per-hop payload would exactly match our time lock delta. Instead, we should be asserting two things: 1. That the time lock in the payload is >= the expected time lock 2. That timeout on the HTLC is exactly equal to the payload
- Loading branch information
Showing
1 changed file
with
49 additions
and
24 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