Calculate hashing blobs in parallel

Improved performance with high number of connected miners.
This commit is contained in:
SChernykh
2024-05-30 16:53:32 +02:00
parent 9a2cab4b5e
commit 33e1ebd3fe
2 changed files with 33 additions and 20 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ void StratumServer::on_block(const BlockTemplate& block)
else if (blobs_data->m_blobs.size() != blobs_data->m_blobSize * num_connections) {
LOGERR(1, "internal error: get_hashing_blobs returned wrong amount of data");
}
else if (num_connections > 1) {
else if (pool_block_debug() && (num_connections > 1)) {
std::vector<uint64_t> blob_hashes;
blob_hashes.reserve(num_connections);