Skip to content

Commit 844dca7

Browse files
committed
Reduce number of ZK proof threads to 4
1 parent b75e2d3 commit 844dca7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/liblelantus/threadpool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

src/spark/state.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct ProofCheckState {
2424
static std::map<uint256, ProofCheckState> gCheckedSparkSpendTransactions;
2525
static 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

2929
static CSparkState sparkState;
3030

0 commit comments

Comments
 (0)