Repository navigation
test: Add test case for spending bare multisig - #29120
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
b13b955 to
f21da15
Compare
|
Title has a typo. Maybe should test that it works with both values for |
f21da15 to
e2fa191
Compare
|
Could also update the documentation of the setting to clarify that it refers to the relay of transactions which create bare outputs, and not to the relay of transactions spending them? |
|
I compiled with #28217, which sets default value of |
The test case already explicitly sets |
|
@maflcko could you elaborate more on this
|
Sure, what is the question? |
|
was asking what you meant by this?
|
|
I mean that the documentation in |
e2fa191 to
9c7b2d0
Compare
|
@maflcko I have updated the PR to include the suggested documentation change |
There was a problem hiding this comment.
@BrandonOdiwuor For my understanding, why is prepending bytes(CScript([OP_0])) to the script sig required after having gone through sign_input_legacy?
There was a problem hiding this comment.
This is due to the OP_CHECKMULTISG off-by-one bug. See for example: https://bitcoin.stackexchange.com/questions/116960/why-checkmultisig-bug-cant-be-solved
@instagibbs I think your suggestion here is incorrect? We do need to append the scriptsig otherwise the tx is simply invalid.
There was a problem hiding this comment.
Thanks for this clarification @willcl-ark
Co-authored-by: Anthony Towns <[email protected]>
9c7b2d0 to
e504b1f
Compare
willcl-ark
left a comment
There was a problem hiding this comment.
ACK 9c7b2d0d37b31f01403f7a0f2ea25b60b126c841
Confirmed this tests that when the -permitbaremultisig=0 policy is set, the mempool still permits spending (confirmed) bare multisig outputs. Mempool rejection of this output type is already tested earlier in the same test file.
|
🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the Possibly this is due to a silent merge conflict (the changes in this pull request being Leave a comment here, if you need help tracking down a confusing failure. |
|
ACK e504b1f ; LGTM and just checking the 1-of-3 case seems fine |
willcl-ark
left a comment
There was a problem hiding this comment.
reACK e504b1f
Appears to only a rebase on master since my previous ack
git range-diff 9c7b2d0d37b31f01403f7a0f2ea25b60b126c841...e504b1fa1fa4d014b329dea81bfdf1aa55db238f
|
utACK e504b1f |
|
ACK e504b1f |
Fixes #29113