Skip to content

Commit

Permalink
Merge branch 'backport/D6620' into 'master'
Browse files Browse the repository at this point in the history
[backport] tests: Make updatecoins_simulation_test deterministic

See merge request bitcoin-cash-node/bitcoin-cash-node!650
  • Loading branch information
cculianu committed Aug 26, 2020
2 parents 0a2de97 + ab9446f commit 229c11d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/coins_tests.cpp
Expand Up @@ -290,6 +290,8 @@ UtxoData::iterator FindRandomFrom(const std::set<COutPoint> &utxoSet) {
// duplicate coinbase tx has the expected effect (the other duplicate is
// overwritten at all cache levels)
BOOST_AUTO_TEST_CASE(updatecoins_simulation_test) {
SeedInsecureRand(/* deterministic */ true);

bool spent_a_duplicate_coinbase = false;
// A simple map to track what we expect the cache stack to represent.
std::map<COutPoint, Coin> result;
Expand Down

0 comments on commit 229c11d

Please sign in to comment.