Skip to content

Commit 58861ad

Browse files
committed
Merge #9904: test: Fail if InitBlockIndex fails
6485466 test: Report InitBlockIndex result (Wladimir J. van der Laan) Tree-SHA512: 8e1408aa8d56ec1873190f886af24aa68b0555ec4996b2b8a5a39a51ded58c8fba5843c07881ed33ab6dcb00e62c2322bcf2a6fb8f1083f77e0d93e7295ab938
2 parents f7ec7cf + 6485466 commit 58861ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/test_bitcoin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha
6969
pblocktree = new CBlockTreeDB(1 << 20, true);
7070
pcoinsdbview = new CCoinsViewDB(1 << 23, true);
7171
pcoinsTip = new CCoinsViewCache(pcoinsdbview);
72-
InitBlockIndex(chainparams);
72+
BOOST_REQUIRE(InitBlockIndex(chainparams));
7373
{
7474
CValidationState state;
7575
bool ok = ActivateBestChain(state, chainparams);
76-
BOOST_CHECK(ok);
76+
BOOST_REQUIRE(ok);
7777
}
7878
nScriptCheckThreads = 3;
7979
for (int i=0; i < nScriptCheckThreads-1; i++)

0 commit comments

Comments
 (0)