Skip to content

Commit 3775ff9

Browse files
committed
Enable mempool consistency checks in unit tests
1 parent a072d1a commit 3775ff9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/test_bitcoin.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha
5555
pathTemp = GetTempPath() / strprintf("test_bitcoin_%lu_%i", (unsigned long)GetTime(), (int)(GetRand(100000)));
5656
boost::filesystem::create_directories(pathTemp);
5757
mapArgs["-datadir"] = pathTemp.string();
58+
mempool.setSanityCheck(1.0);
5859
pblocktree = new CBlockTreeDB(1 << 20, true);
5960
pcoinsdbview = new CCoinsViewDB(1 << 23, true);
6061
pcoinsTip = new CCoinsViewCache(pcoinsdbview);

0 commit comments

Comments
 (0)