-
Notifications
You must be signed in to change notification settings - Fork 371
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
Update commitment test vectors #2045
Update commitment test vectors #2045
Conversation
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #2045 +/- ##
==========================================
- Coverage 91.13% 87.33% -3.80%
==========================================
Files 101 101
Lines 48852 44297 -4555
Branches 48852 44297 -4555
==========================================
- Hits 44521 38687 -5834
- Misses 4331 5610 +1279
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Tests the case where only one anchor output exists for the funder in the commitment transaction due to the remote having a dust balance (in this case, 0).
The amount for HTLC lightningdevkit#6 was updated in the spec's test vectors, but the "same amount and preimage" test vector itself was not updated, even though the new HTLC amount resulted in a different commitment transaction, and thus, different signatures.
8bd5bdf
to
5910802
Compare
Searching the resulting channel.rs for the various hex strings in the BOLT PRs linked makes me think we're missing a lot of tests, is that deliberate? eg just looking at the top of 1056 I can't find
|
That specific one is for legacy channels (pre-static-remote-key), which we don't support. Since we only support |
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.
Checked that the test vectors we have, matched.
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.
Thanks.
Updates the commitment vectors to match against lightning/bolts#1056 and the latest changes to lightning/bolts#1018.