Merge #8222: Enable mempool consistency checks in unit tests

3775ff9 Enable mempool consistency checks in unit tests (Pieter Wuille)
This commit is contained in:
Wladimir J. van der Laan 2016-06-22 08:48:23 +02:00 committed by Alexander Block
parent 381629c757
commit e51f505449

View File

@ -59,6 +59,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha
pathTemp = GetTempPath() / strprintf("test_dash_%lu_%i", (unsigned long)GetTime(), (int)(GetRand(100000)));
boost::filesystem::create_directories(pathTemp);
mapArgs["-datadir"] = pathTemp.string();
mempool.setSanityCheck(1.0);
pblocktree = new CBlockTreeDB(1 << 20, true);
pcoinsdbview = new CCoinsViewDB(1 << 23, true);
pcoinsTip = new CCoinsViewCache(pcoinsdbview);