Skip to content
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

Scale up CLTV_FAR_FAR_AWAY to 2 weeks of blocks #1532

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

ariard
Copy link

@ariard ariard commented Jun 9, 2022

This should be long enough to allow a payment path drawn across multiple routing hops with substantial
cltv_expiry_delta. Indeed, the length of those values is the reaction delay offered to a routing node
in case of HTLC on-chain settlement. While appearing less competitive, a node operator could decide to
scale them up to suit its security policy. At the network-level, we shouldn't constrain them too much,
while avoiding to introduce a DoS vector. Further, a low CTLV_FAR_FAR_AWAY could be a source of
routing failure for any HTLC sender picking up a LDK node among the first hops.

Also default value of both LND and CLN.

TheBlueMatt
TheBlueMatt previously approved these changes Jun 9, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jun 9, 2022

Codecov Report

Merging #1532 (c989ce1) into main (22dc964) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1532      +/-   ##
==========================================
- Coverage   90.94%   90.91%   -0.03%     
==========================================
  Files          80       80              
  Lines       43469    43469              
  Branches    43469    43469              
==========================================
- Hits        39533    39521      -12     
- Misses       3936     3948      +12     
Impacted Files Coverage Δ
lightning/src/ln/channelmanager.rs 84.32% <ø> (ø)
lightning/src/ln/functional_tests.rs 96.97% <0.00%> (-0.20%) ⬇️
lightning-net-tokio/src/lib.rs 77.16% <0.00%> (+0.30%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 22dc964...c989ce1. Read the comment docs.

wpaulino
wpaulino previously approved these changes Jun 9, 2022
@TheBlueMatt
Copy link
Collaborator

Lets hold off merging until 109 for this.

// in case of HTLC on-chain settlement. While appearing less competitive, a node operator could decide to
// scale them up to suit its security policy. At the network-level, we shouldn't constrain them too much,
// while avoiding to introduce a DoS vector. Further, a low CTLV_FAR_FAR_AWAY could be a source of
// routing failure for any HTLC sender picking up a LDK node among the first hops.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// routing failure for any HTLC sender picking up a LDK node among the first hops.
// routing failure for any HTLC sender picking up an LDK node among the first hops.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@ariard ariard dismissed stale reviews from wpaulino and TheBlueMatt via c989ce1 June 16, 2022 20:34
@TheBlueMatt TheBlueMatt merged commit abf6564 into lightningdevkit:main Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants