diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2016-07-22 15:57:25 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-07-30 02:17:47 +0200 |
commit | 0fd2a33648ccde4b989f1d69529daea4d88b14a2 (patch) | |
tree | 9239f56f316cb63fd390f0cdf553b420df5c12c3 /src/test | |
parent | bbcb8fd884335134065143047e9798dc8ec13445 (diff) | |
download | bitcoin-0fd2a33648ccde4b989f1d69529daea4d88b14a2.tar.xz |
Use a signal to continue init after genesis activation
Diffstat (limited to 'src/test')
-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 856f9b8423..056f2982cf 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); |