diff options
| author | Gavin Andresen <[email protected]> | 2013-01-17 16:58:58 -0800 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-01-17 16:58:58 -0800 |
| commit | 0e31ae9818528d52bbd802a8917b7015f8e38ae7 (patch) | |
| tree | 75259fd38459f852cc5b2a97fc91e93399e114c5 /src/test/test_bitcoin.cpp | |
| parent | Merge pull request #1795 from TheBlueMatt/bloom (diff) | |
| parent | Remove contention on signature cache during block validation (diff) | |
| download | discoin-0e31ae9818528d52bbd802a8917b7015f8e38ae7.tar.xz discoin-0e31ae9818528d52bbd802a8917b7015f8e38ae7.zip | |
Merge pull request #2060 from sipa/parallel
Parallel script verification
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -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 b98816d53..f75b762f1 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; |