aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-06-18 19:15:03 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2016-06-18 19:15:03 +0200
commit3775ff9ea7e92cc1e6a0cdbb15999913d93c87e7 (patch)
tree6dd47d2a05672943cdb757b68c8c1dc3c23d16eb /src
parenta072d1a83787e786d074a4b5871b0b961781f7c6 (diff)
Enable mempool consistency checks in unit tests
Diffstat (limited to 'src')
-rw-r--r--src/test/test_bitcoin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp
index c68320ba8b..3dc59ddd08 100644
--- a/src/test/test_bitcoin.cpp
+++ b/src/test/test_bitcoin.cpp
@@ -55,6 +55,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha
pathTemp = GetTempPath() / strprintf("test_bitcoin_%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);