We are not actually testing some cases accidentally, for block inclusion.
Issue discovered while reviewing https://github.com/bitcoin/bitcoin/pull/32533
We are not actually testing some cases accidentally, for block inclusion.
Issue discovered while reviewing https://github.com/bitcoin/bitcoin/pull/32533
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32591.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | theStack, maflcko, BrandonOdiwuor, TheCharlatan |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
Concept ACK, good catch!
258 | @@ -260,7 +259,7 @@ def get_tx(self): 259 | 'reject_reason': "disabled opcode", 260 | 'expect_disconnect': True, 261 | 'get_tx': get_tx, 262 | - 'valid_in_block' : True 263 | + 'valid_in_block' : False
nit: alternatively, could just remove the line since False is the default anyways, but no blocker
ACK 8fcd6845052354fad80ae7e5feda3f6a2e441e12
Diff of feature_block.py test runs between merge-base and PR (patched out the timestamps from the logging formatter in order to compare):
> TestFramework (INFO): Reject block with invalid tx: InvalidOPIFConstruction
14a16,30
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_CAT
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_SUBSTR
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_LEFT
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_RIGHT
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_INVERT
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_AND
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_OR
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_XOR
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_2MUL
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_2DIV
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_MUL
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_DIV
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_MOD
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_LSHIFT
> TestFramework (INFO): Reject block with invalid tx: DisabledOpcode_OP_RSHIFT
review ACK 8fcd6845052354fad80ae7e5feda3f6a2e441e12 🔶
<details><summary>Show signature</summary>
Signature:
untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: review ACK 8fcd6845052354fad80ae7e5feda3f6a2e441e12 🔶
e066qpLseQp5Fo5KxGJdcA7vJSlbVMRlI7Q1n8fYQkubEeOeazm3ds2n8dgztwr9hLYBFQQor2zSept36SnWAw==
</details>
Code Review ACK 8fcd6845052354fad80ae7e5feda3f6a2e441e12
ACK 8fcd6845052354fad80ae7e5feda3f6a2e441e12