diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-01-17 16:58:58 -0800 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-01-17 16:58:58 -0800 |
commit | 0e31ae9818528d52bbd802a8917b7015f8e38ae7 (patch) | |
tree | 75259fd38459f852cc5b2a97fc91e93399e114c5 /src/test | |
parent | 91f70a75daa7ffb89bbec23ca54e5f2c3fa1a83e (diff) | |
parent | ef0f422519de4a3ce47d923e5f8f90cd12349f3e (diff) |
Merge pull request #2060 from sipa/parallel
Parallel script verification
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_bitcoin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index b98816d53d..f75b762f1f 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -33,9 +33,13 @@ struct TestingSetup { pwalletMain = new CWallet("wallet.dat"); pwalletMain->LoadWallet(fFirstRun); RegisterWallet(pwalletMain); + nScriptCheckThreads = 3; + for (int i=0; i < nScriptCheckThreads-1; i++) + NewThread(ThreadScriptCheck, NULL); } ~TestingSetup() { + ThreadScriptCheckQuit(); delete pwalletMain; pwalletMain = NULL; delete pcoinsTip; |