mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-17 17:02:43 +00:00
test: Fix P2PK script test
This commit is contained in:
parent
1fbbdd20cd
commit
c9ce1c7c4a
@ -1826,7 +1826,7 @@
|
||||
[
|
||||
"0x47 0x304402203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022054e1c258c2981cdfba5df1f46661fb6541c44f77ca0092f3600331abfffb125101 NOP8",
|
||||
"0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG",
|
||||
"",
|
||||
"P2SH",
|
||||
"OK",
|
||||
"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
|
||||
).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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user