-
Notifications
You must be signed in to change notification settings - Fork 389
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 pre-HTLC DataLossProtect to match new spec changes #537
Update pre-HTLC DataLossProtect to match new spec changes #537
Conversation
This was the way DataLossProtect was originally written, however it didn't match other implementations at the time during testing. It turns out, other implementations didn't agree with each other anyway (depending on the exact timeline), so the spec was clarified somewhat in lightning/bolts#550 . This updates us to be in line with the new guidance and appears to solve out-of-sync issues in testing.
Codecov Report
@@ Coverage Diff @@
## master #537 +/- ##
=======================================
Coverage 89.75% 89.76%
=======================================
Files 34 34
Lines 18991 18991
=======================================
+ Hits 17046 17047 +1
+ Misses 1945 1944 -1
Continue to review full report at Codecov.
|
I've def manually tested this line of code extensively, if you wanna get this off your plate and I'll PR my test + potential other fix separately. |
Alright, thanks! Looking forward to your tests :). |
This was the way DataLossProtect was originally written, however it
didn't match other implementations at the time during testing. It
turns out, other implementations didn't agree with each other
anyway (depending on the exact timeline), so the spec was clarified
somewhat in lightning/bolts#550
. This updates us to be in line with the new guidance and appears
to solve out-of-sync issues in testing.
If someone feels super motivated to go write a test for this, they should. I'll circle back around to it sooner or later if not, but it should probably get a test given both the old and new versions happily pass our existing tests.