Add a consistency check for the block chain data structures
commit3fcfbc8ac5fcba474151ceedf61c4e433e433474
authorPieter Wuille <pieter.wuille@gmail.com>
Fri, 13 Mar 2015 16:25:34 +0000 (13 09:25 -0700)
committerPieter Wuille <pieter.wuille@gmail.com>
Fri, 27 Mar 2015 20:38:48 +0000 (27 13:38 -0700)
tree669f0294f92722ef5ee4df8b98a6ad4ba570ea0e
parent8e4fd0cc315cad1e2925907ef7c62549a83730a5
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.
src/chainparams.cpp
src/chainparams.h
src/init.cpp
src/main.cpp
src/main.h
src/test/test_bitcoin.cpp