diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-12-24 13:52:34 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-12-24 13:43:25 +0100 |
commit | fad140e311028f904635126e3c77352afac1b75e (patch) | |
tree | df66623326085e9f7b117cf05a4fd7cf19c5ced7 /src | |
parent | 1be6f2dba9b79e54ffdb40ae6ac14cede61232ab (diff) |
test: Set correct nValue for multi-op-return policy check
Diffstat (limited to 'src')
-rw-r--r-- | src/test/transaction_tests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp index 1f520074b1..5b35ed6976 100644 --- a/src/test/transaction_tests.cpp +++ b/src/test/transaction_tests.cpp @@ -762,7 +762,9 @@ BOOST_AUTO_TEST_CASE(test_IsStandard) // Only one TxoutType::NULL_DATA permitted in all cases t.vout.resize(2); t.vout[0].scriptPubKey = CScript() << OP_RETURN << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38"); + t.vout[0].nValue = 0; t.vout[1].scriptPubKey = CScript() << OP_RETURN << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38"); + t.vout[1].nValue = 0; reason.clear(); BOOST_CHECK(!IsStandardTx(CTransaction(t), reason)); BOOST_CHECK_EQUAL(reason, "multi-op-return"); |