Review report

core: PR #36128

🟡 Minor

Hash mismatch case does not isolate the final byte (src/test/data/script_tests.json:1293, head)

This case is labeled as a last-byte-only mismatch, but the witness program starts with 4ae815…, while the SHA256 hash of the same OP_1 witness script starts with 6e340b…, as shown in the preceding case. Their first 31 bytes differ, so a 31-byte comparison would still reject the script. The test therefore does not catch the advertised memcmp(..., 32) to memcmp(..., 31) regression. Use the correct OP_1 hash with only its final byte changed to test the intended boundary.