-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase default max-cltv value #2677
Conversation
LND and CLN already use 2016 blocks. The network is generally raising the values of `cltv_expiry_delta` to account for high on-chain fees, so we'll need to allow longer maximum deltas to avoid rejecting payments.
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #2677 +/- ##
==========================================
- Coverage 85.88% 85.87% -0.01%
==========================================
Files 214 214
Lines 17591 17590 -1
Branches 728 734 +6
==========================================
- Hits 15108 15106 -2
- Misses 2483 2484 +1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that can work without also updating the value below as well:
val MAX_CLTV_EXPIRY_DELTA: CltvExpiryDelta = CltvExpiryDelta(7 * 144) // one week |
It's a problem that we have so many constants defined in so many different places. Should |
Good points, I cleaned up the constants in I'm not sure what to do with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change LGTM, but I need to look at it a 2nd time after the week-end to be sure...
And is DEFAULT_ROUTE_MAX_CLTV really needed?
I think yes, in the context of trampoline.
LND and CLN already use 2016 blocks. The network is generally raising the values of
cltv_expiry_delta
to account for high on-chain fees, so we'll need to allow longer maximum deltas to avoid rejecting payments.