mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
tests: Make updatecoins_simulation_test deterministic
This commit is contained in:
parent
b3a715301a
commit
ef0b01217a
1 changed files with 2 additions and 0 deletions
|
|
@ -279,6 +279,8 @@ UtxoData::iterator FindRandomFrom(const std::set<COutPoint> &utxoSet) {
|
||||||
// has the expected effect (the other duplicate is overwritten at all cache levels)
|
// has the expected effect (the other duplicate is overwritten at all cache levels)
|
||||||
BOOST_AUTO_TEST_CASE(updatecoins_simulation_test)
|
BOOST_AUTO_TEST_CASE(updatecoins_simulation_test)
|
||||||
{
|
{
|
||||||
|
SeedInsecureRand(/* deterministic */ true);
|
||||||
|
|
||||||
bool spent_a_duplicate_coinbase = false;
|
bool spent_a_duplicate_coinbase = false;
|
||||||
// A simple map to track what we expect the cache stack to represent.
|
// A simple map to track what we expect the cache stack to represent.
|
||||||
std::map<COutPoint, Coin> result;
|
std::map<COutPoint, Coin> result;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue