mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
test: make script_combineSigs and spends_witness_prog cases independent #36794
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36794
Loading…
Reference in a new issue
No description provided.
Delete branch "script_test_split"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #36692: remove test state that is shared and modified across cases.
script_combineSigs: The P2PKH, P2SH and multisig cases shared one funding transaction, whosescriptPubkeywas modified between them, and one keystore. Each case is now its own test with its own keys, keystore and funding transaction.spends_witness_prog: every output type reused the same transactions and coins view. The P2SH-wrapped cases relied on thescriptPubkeyleft by the previous case and had to clear thescriptSigthey set. Each check now builds fresh state, and the scripts are named.The checks are unchanged.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
Reviewers, 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.
No verified findings are available from this review.
Review coverage was incomplete.
Reviewed:
7358d35bb01d· Review report · Previous reportspermalink
Concept ACK
crACK
1f9802c192I went through both diffs and the checks match.
Left some non-blocking nits.
as per developer notes braces should be in the same line and
++iis preferred overi++(link).I think this comment can be moved above to
CombineSigsTestas it describes all three cases?doesn't harm but we could keep the label here as well?
Taken - thanks!
ACK
26d2f7625aACK
26d2f7625aIt matches the recent "declarative tests" series :)
Each new test case makes the same assertions as the old code, in the same order, with the same expected values.
Note: Old problem but this comment is not correct. Easy to check;
BOOST_CHECK_EQUAL(scriptSig.scriptSig, scriptSigCopy.scriptSig);Not something I suggest to fix in this PR.
NIT (non-blocking); with the name change of the helper, this case can be a bit confusing. A clarifying comment can help
Taken - thanks!
Thanks - good catch!
re-ACK
7358d35bb0Show signature
```bash -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512re-ACK
7358d35bb0-----BEGIN PGP SIGNATURE-----
iJEEARYKADkWIQRxIqfV4fHauqeDZkLHO83HCSJ4EQUCavPzBhsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMiwwLDMACgkQxzvNxwkieBH7MAEAg/CcUjT+GTywtxOE8MZr
AdPwyBUzBEIgOPLZyTBoyQcBAOuCEIcJxmBDTJyWV4PRFnqqI4gOnipGrgT7p+qt
E8oH
=53QK
-----END PGP SIGNATURE-----
re ACK
7358d35bb0Thanks for taking my suggestion. LGTM !