diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-03-13 09:25:34 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-03-27 13:38:48 -0700 |
commit | 3fcfbc8ac5fcba474151ceedf61c4e433e433474 (patch) | |
tree | 669f0294f92722ef5ee4df8b98a6ad4ba570ea0e /src/test/test_bitcoin.cpp | |
parent | 8e4fd0cc315cad1e2925907ef7c62549a83730a5 (diff) |
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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 7d5207b11e..b5c729d6a9 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -29,6 +29,7 @@ extern void noui_connect(); BasicTestingSetup::BasicTestingSetup() { fPrintToDebugLog = false; // don't want to write to debug.log file + fCheckBlockIndex = true; SelectParams(CBaseChainParams::MAIN); } BasicTestingSetup::~BasicTestingSetup() |