Calculate hashing blobs in parallel
Improved performance with high number of connected miners.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user