p2pool: submit block from the main thread only

This commit is contained in:
SChernykh
2021-08-25 12:45:14 +02:00
parent 8f93adf7a1
commit a38a7be73f
3 changed files with 37 additions and 4 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ void StratumServer::on_share_found(uv_work_t* req)
// First check if we found a mainnet block
if (difficulty.check_pow(pow_hash)) {
pool->submit_block(share->m_templateId, share->m_nonce, share->m_extraNonce);
pool->submit_block_async(share->m_templateId, share->m_nonce, share->m_extraNonce);
block.update_tx_keys();
}