test: Fix P2PK script test

This commit is contained in:
billymcbip
2026-01-22 13:14:00 +01:00
parent 1fbbdd20cd
commit c9ce1c7c4a
2 changed files with 2 additions and 2 deletions

View File

@@ -667,7 +667,7 @@ BOOST_AUTO_TEST_CASE(script_build)
"P2SH(P2PK) with non-push scriptSig but no P2SH or SIGPUSHONLY", 0, true
).PushSig(keys.key2).Opcode(OP_NOP8).PushRedeem());
tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG,
"P2PK with non-push scriptSig but with P2SH validation", 0
"P2PK with non-push scriptSig but with P2SH validation", SCRIPT_VERIFY_P2SH
).PushSig(keys.key2).Opcode(OP_NOP8));
tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG,
"P2SH(P2PK) with non-push scriptSig but no SIGPUSHONLY", SCRIPT_VERIFY_P2SH, true