diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-03-03 07:16:20 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-03-03 07:16:32 +0100 |
commit | 58861ad91b499f6902c0f1c51bb745b91a275826 (patch) | |
tree | 0066d9cf5a3762a83b61b93db506c00b484dad54 /src | |
parent | f7ec7cfd38b543ba81ac7bed5b77f9a19739460b (diff) | |
parent | 64854666f57d9f94269000f10897858e8c60d99f (diff) | |
download | bitcoin-58861ad91b499f6902c0f1c51bb745b91a275826.tar.xz |
Merge #9904: test: Fail if InitBlockIndex fails
6485466 test: Report InitBlockIndex result (Wladimir J. van der Laan)
Tree-SHA512: 8e1408aa8d56ec1873190f886af24aa68b0555ec4996b2b8a5a39a51ded58c8fba5843c07881ed33ab6dcb00e62c2322bcf2a6fb8f1083f77e0d93e7295ab938
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_bitcoin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 51fc6ae0ba..6039424480 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -69,11 +69,11 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha pblocktree = new CBlockTreeDB(1 << 20, true); pcoinsdbview = new CCoinsViewDB(1 << 23, true); pcoinsTip = new CCoinsViewCache(pcoinsdbview); - InitBlockIndex(chainparams); + BOOST_REQUIRE(InitBlockIndex(chainparams)); { CValidationState state; bool ok = ActivateBestChain(state, chainparams); - BOOST_CHECK(ok); + BOOST_REQUIRE(ok); } nScriptCheckThreads = 3; for (int i=0; i < nScriptCheckThreads-1; i++) |