-
Notifications
You must be signed in to change notification settings - Fork 405
Fix final incorrect cltv #2639
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
Fix final incorrect cltv #2639
Conversation
Codecov ReportAll modified lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2639 +/- ##
==========================================
- Coverage 88.99% 88.96% -0.04%
==========================================
Files 112 112
Lines 87168 87191 +23
Branches 87168 87191 +23
==========================================
- Hits 77575 77567 -8
- Misses 7353 7384 +31
Partials 2240 2240
☔ View full report in Codecov by Sentry. |
4df3797
to
f51a1e5
Compare
3325025
to
5036e21
Compare
You might need to push again, GitHub is stuck "processing updates" on the PR. |
0e91028
to
12ee4b4
Compare
As noted in BOLT 4, we should be using the update_add_htlc's cltv_expiry, not the CLTV expiry set by the sender in the onion for this comparison. See here: https://github.com/lightning/bolts/blob/4dcc377209509b13cf89a4b91fde7d478f5b46d8/04-onion-routing.md?plain=1#L334
12ee4b4
to
33715e8
Compare
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.
Thank you for tackling this! 🫶
Fixes #2513