Skip to content

Commit

Permalink
Fix miner_tests.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredTate committed Mar 14, 2024
1 parent 4484959 commit 7afcc93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/miner_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ void MinerTestingSetup::TestPackageSelection(const CChainParams& chainparams, co
// This tx will be mineable, and should cause hashLowFeeTx2 to be selected
// as well.
tx.vin[0].prevout.n = 1;
tx.vout[0].nValue = 100000000 - 10000; // 10k satoshi fee
m_node.mempool->addUnchecked(entry.Fee(10000).FromTx(tx));
tx.vout[0].nValue = 100000000 - 100000; // 10k satoshi fee
m_node.mempool->addUnchecked(entry.Fee(100000).FromTx(tx));
pblocktemplate = AssemblerForTest(chainparams).CreateNewBlock(scriptPubKey, ALGO_SCRYPT);
BOOST_REQUIRE_EQUAL(pblocktemplate->block.vtx.size(), 9U);
BOOST_CHECK(pblocktemplate->block.vtx[8]->GetHash() == hashLowFeeTx2);
Expand Down

0 comments on commit 7afcc93

Please sign in to comment.