File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class ParallelOpThreadPool {
4949 // In case of shutdown thread list will be empty and destructor will wait for this thread completion
5050 boost::thread::id currentId = boost::this_thread::get_id ();
5151 auto pThread = std::find_if (threads.begin (), threads.end (),
52- [= ](const boost::thread &t) { return t.get_id () == currentId; });
52+ [currentId ](const boost::thread &t) { return t.get_id () == currentId; });
5353 if (pThread != threads.end ()) {
5454 pThread->detach ();
5555 threads.erase (pThread);
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ struct ProofCheckState {
2424static std::map<uint256, ProofCheckState> gCheckedSparkSpendTransactions ;
2525static CCriticalSection cs_checkedSparkSpendTransactions;
2626
27- static ParallelOpThreadPool<bool > gCheckProofThreadPool (std::max(boost::thread::hardware_concurrency(), 8u ));
27+ static ParallelOpThreadPool<bool > gCheckProofThreadPool (std::max(boost::thread::hardware_concurrency(), 4u ));
2828
2929static CSparkState sparkState;
3030
You can’t perform that action at this time.
0 commit comments