More fine-grained locks in crypto cache

This commit is contained in:
SChernykh
2022-08-15 18:39:28 +02:00
parent 1438175477
commit 4c8dbee79d
3 changed files with 26 additions and 17 deletions
+5 -2
View File
@@ -762,8 +762,11 @@ bool SideChain::get_outputs_blob(PoolBlock* block, uint64_t total_reward, std::v
}
++work->num_helper_jobs_finished;
delete work;
}, nullptr);
},
[](uv_work_t* req, int /*status*/)
{
delete reinterpret_cast<Work*>(req->data);
});
if (err) {
LOGERR(1, "get_outputs_blob: uv_queue_work failed, error " << uv_err_name(err));