test: Fix P2PK script test
This commit is contained in:
1 parent
1fbbdd20cd
commit
c9ce1c7c4a
2 files changed
+2
-2
No files matched your search
@@ -1826,7 +1826,7 @@
|
|||||||
[
|
[
|
||||||
"0x47 0x304402203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022054e1c258c2981cdfba5df1f46661fb6541c44f77ca0092f3600331abfffb125101 NOP8",
|
"0x47 0x304402203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022054e1c258c2981cdfba5df1f46661fb6541c44f77ca0092f3600331abfffb125101 NOP8",
|
||||||
"0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG",
|
"0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG",
|
||||||
"",
|
"P2SH",
|
||||||
"OK",
|
"OK",
|
||||||
"P2PK with non-push scriptSig but with P2SH validation"
|
"P2PK with non-push scriptSig but with P2SH validation"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -667,7 +667,7 @@ BOOST_AUTO_TEST_CASE(script_build)
|
|||||||
"P2SH(P2PK) with non-push scriptSig but no P2SH or SIGPUSHONLY", 0, true
|
"P2SH(P2PK) with non-push scriptSig but no P2SH or SIGPUSHONLY", 0, true
|
||||||
).PushSig(keys.key2).Opcode(OP_NOP8).PushRedeem());
|
).PushSig(keys.key2).Opcode(OP_NOP8).PushRedeem());
|
||||||
tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG,
|
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));
|
).PushSig(keys.key2).Opcode(OP_NOP8));
|
||||||
tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG,
|
tests.push_back(TestBuilder(CScript() << ToByteVector(keys.pubkey2C) << OP_CHECKSIG,
|
||||||
"P2SH(P2PK) with non-push scriptSig but no SIGPUSHONLY", SCRIPT_VERIFY_P2SH, true
|
"P2SH(P2PK) with non-push scriptSig but no SIGPUSHONLY", SCRIPT_VERIFY_P2SH, true
|
||||||
|
|||||||
Reference in new issue
Block a user