Skip to content

Commit a78e6ea

Browse files
committed
Fix bug in mempool_tests unit test
1 parent d2e987a commit a78e6ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/mempool_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ BOOST_AUTO_TEST_CASE(MempoolSizeLimitTest)
377377
tx7.vout.resize(2);
378378
tx7.vout[0].scriptPubKey = CScript() << OP_7 << OP_EQUAL;
379379
tx7.vout[0].nValue = 10 * COIN;
380-
tx7.vout[0].scriptPubKey = CScript() << OP_7 << OP_EQUAL;
381-
tx7.vout[0].nValue = 10 * COIN;
380+
tx7.vout[1].scriptPubKey = CScript() << OP_7 << OP_EQUAL;
381+
tx7.vout[1].nValue = 10 * COIN;
382382

383383
pool.addUnchecked(tx4.GetHash(), CTxMemPoolEntry(tx4, 7000LL, 0, 10.0, 1, pool.HasNoInputsOf(tx4)));
384384
pool.addUnchecked(tx5.GetHash(), CTxMemPoolEntry(tx5, 1000LL, 0, 10.0, 1, pool.HasNoInputsOf(tx5)));

0 commit comments

Comments
 (0)