diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-08-04 12:21:59 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-08-04 12:33:21 +0200 |
| commit | f97d335942ae1a78c4898acf8640d99f4deaa6d3 (patch) | |
| tree | 133c24dcf1d2728db1e92d3f9e597ea1c9aa3079 /src/test/test_bitcoin.cpp | |
| parent | Merge #8391: Consensus: Remove ISM (diff) | |
| parent | Do diskspace check before import thread is started (diff) | |
| download | discoin-f97d335942ae1a78c4898acf8640d99f4deaa6d3.tar.xz discoin-f97d335942ae1a78c4898acf8640d99f4deaa6d3.zip | |
Merge #8392: Fix several node initialization issues
9d4eb9a Do diskspace check before import thread is started (Pieter Wuille)
aa59f2e Add extra message to avoid a long 'Loading banlist' (Pieter Wuille)
0fd2a33 Use a signal to continue init after genesis activation (Pieter Wuille)
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 856f9b842..056f2982c 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -60,6 +60,11 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha pcoinsdbview = new CCoinsViewDB(1 << 23, true); pcoinsTip = new CCoinsViewCache(pcoinsdbview); InitBlockIndex(chainparams); + { + CValidationState state; + bool ok = ActivateBestChain(state, chainparams); + BOOST_CHECK(ok); + } nScriptCheckThreads = 3; for (int i=0; i < nScriptCheckThreads-1; i++) threadGroup.create_thread(&ThreadScriptCheck); |