aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2015-03-13 09:25:34 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2015-03-27 17:24:07 -0700
commita1f425b48bb3c2c2e8b3ee00c1020bc18dc70a26 (patch)
treecc56057330297065648d132cd862aceccfd5f5aa /src/test/test_bitcoin.cpp
parent4635a4c4e7b706f4fab35a06cf2782d55a11b1b8 (diff)
downloadbitcoin-a1f425b48bb3c2c2e8b3ee00c1020bc18dc70a26.tar.xz
Add a consistency check for the block chain data structures
This adds a -checkblockindex (defaulting to true for regtest), which occasionally does a full consistency check for mapBlockIndex, setBlockIndexCandidates, chainActive, and mapBlocksUnlinked.
Diffstat (limited to 'src/test/test_bitcoin.cpp')
-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 e50218d8ef..5269e3bda7 100644
--- a/src/test/test_bitcoin.cpp
+++ b/src/test/test_bitcoin.cpp
@@ -31,6 +31,7 @@ struct TestingSetup {
TestingSetup() {
fPrintToDebugLog = false; // don't want to write to debug.log file
+ fCheckBlockIndex = true;
SelectParams(CBaseChainParams::UNITTEST);
noui_connect();
#ifdef ENABLE_WALLET