Skip to content

Commit

Permalink
Make spark_state_test stable
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Dec 4, 2023
1 parent 9a76d6a commit a2c5cb1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/spark_state_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ BOOST_AUTO_TEST_CASE(add_mints_to_state)
GenerateBlocks(1100);

std::vector<CMutableTransaction> txs;
auto mints = GenerateMints({1 * COIN, 2 * COIN, 1 * CENT}, txs);
auto mints = GenerateMints({1 * COIN, 2 * COIN, 3 * COIN}, txs);

sort(mints.begin(), mints.end(),
[](const CSparkMintMeta& a, const CSparkMintMeta& b)->bool {
return a.v < b.v;
});

mempool.clear();
auto blockIdx1 = GenerateBlock({txs[0]});
Expand Down

0 comments on commit a2c5cb1

Please sign in to comment.