Skip to content

Commit fad140e

Browse files
author
MarcoFalke
committed
test: Set correct nValue for multi-op-return policy check
1 parent 1be6f2d commit fad140e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/transaction_tests.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,9 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
762762
// Only one TxoutType::NULL_DATA permitted in all cases
763763
t.vout.resize(2);
764764
t.vout[0].scriptPubKey = CScript() << OP_RETURN << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38");
765+
t.vout[0].nValue = 0;
765766
t.vout[1].scriptPubKey = CScript() << OP_RETURN << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38");
767+
t.vout[1].nValue = 0;
766768
reason.clear();
767769
BOOST_CHECK(!IsStandardTx(CTransaction(t), reason));
768770
BOOST_CHECK_EQUAL(reason, "multi-op-return");

0 commit comments

Comments
 (0)