Code cleanup

This commit is contained in:
SChernykh 2022-07-14 14:28:06 +02:00
parent 3c697c2d7e
commit c33033b2f4

View file

@ -173,6 +173,7 @@ SideChain::SideChain(p2pool* pool, NetworkType type, const char* pool_name)
LOGINFO(4, "running " << numThreads << " pre-calculation workers");
m_precalcWorkers.reserve(numThreads);
for (uint32_t i = 0; i < numThreads; ++i) {
m_precalcWorkers.emplace_back(&SideChain::precalc_worker, this);
}
@ -2021,6 +2022,7 @@ void SideChain::finish_precalc()
m_precalcWorkers.shrink_to_fit();
delete m_uniquePrecalcInputs;
m_uniquePrecalcInputs = nullptr;
uv_mutex_destroy(&m_precalcJobsMutex);
uv_cond_destroy(&m_precalcJobsCond);