Merge 462fbcd212 into merged_master (Bitcoin PR #17325)

This commit is contained in:
Andrew Poelstra 2020-11-09 21:20:49 +00:00
commit 971870ffd5

View file

@ -1308,7 +1308,7 @@ bool AppInitMain(NodeContext& node)
InitSurjectionproofCache();
LogPrintf("Using %u threads for script verification\n", nScriptCheckThreads);
LogPrintf("Script verification uses %d additional threads\n", std::max(nScriptCheckThreads - 1, 0));
if (nScriptCheckThreads) {
for (int i=0; i<nScriptCheckThreads-1; i++)
threadGroup.create_thread([i]() { return ThreadScriptCheck(i); });