-
Notifications
You must be signed in to change notification settings - Fork 877
Fix is_invalid_use_of_sighash_single()
incompatibility with Bitcoin Core
#4113
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 is_invalid_use_of_sighash_single()
incompatibility with Bitcoin Core
#4113
Conversation
Pull Request Test Coverage Report for Build 13512629499Details
💛 - Coveralls |
510d0ac
to
bf5d00e
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.
ACK bf5d00e
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.
ACK bf5d00e
bf5d00e
to
ce29c18
Compare
The test is now added in a separate commit, otherwise, nothing has been changed since the last review. |
Thank for making the effort to split them up. The test patch and fix are the wrong way around. Every patch should build and test cleanly. The idea is we put the test second but then during review a reviewer can rearrange the patch if they want and verify that it fails without the fix. (The 'every-patch-builds-and-tests' is not enforced by GitHub CI but @apoelstra runs additional CI checks that verify it.) |
ce29c18
to
b07c301
Compare
@tcharding Thanks for the clarification. I misread the comment from @Kixunil. Rebased to put the test after the fix. |
b07c301
to
7ab2f5b
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.
ACK 7ab2f5b
Verified that the test fails if put up front. Thanks @liuchengxu! |
BTW I was thinking we could have a special marker in the commit message for tests that test fixes in previous commits. Then CI could do the rearranging and testing. |
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.
ACK 7ab2f5b
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.
ACK 7ab2f5b; successfully ran local tests
@liuchengxu do you want to open the backport PR as well? |
Backported in #4122 |
I'm happy to do backports as needed. Its boring maintainer work, I don't think we should ask external contributors to do it. |
…patibility with Bitcoin Core 18c2cad Add test for sighash_single_bug incompatility fix (Liu-Cheng Xu) 068c3f2 Fix `is_invalid_use_of_sighash_single()` incompatibility with Bitcoin Core (Liu-Cheng Xu) Pull request description: Backport #4113 Cherry-picked the 2 commits and manually fixed merge conflicts. ACKs for top commit: apoelstra: ACK 18c2cad; successfully ran local tests Tree-SHA512: 9ddc3950e6f35c1fb6d44156a26a8111fe73e6189b1e6c57464173671ce1fab95558485844f72abb33f632b5015089733f3a0e4acdb11005c06c58d466a63706
Close #4112