Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
htlcswitch+routing: implement expiry_too_far failure #2051
We add a check to HtlcSatifiesPolicy to verify that the time lock for the outgoing htlc that is requested in the onion packet isn't too far in the future.
Without this check, anyone could force an unreasonably long time lock on the forwarding node.