aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-01-17 16:58:58 -0800
committerGavin Andresen <gavinandresen@gmail.com>2013-01-17 16:58:58 -0800
commit0e31ae9818528d52bbd802a8917b7015f8e38ae7 (patch)
tree75259fd38459f852cc5b2a97fc91e93399e114c5 /src/test
parent91f70a75daa7ffb89bbec23ca54e5f2c3fa1a83e (diff)
parentef0f422519de4a3ce47d923e5f8f90cd12349f3e (diff)
Merge pull request #2060 from sipa/parallel
Parallel script verification
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_bitcoin.cpp4
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;