Fixed rare "low diff share" errors

pull/181/head
SChernykh 2 years ago
parent b267c19a45
commit b25e5449c8

@ -388,7 +388,8 @@ bool StratumServer::on_submit(StratumClient* client, uint32_t id, const char* jo
}
if (target >= TARGET_4_BYTES_LIMIT) {
target = (target >> 32) << 32;
// "Low diff share" fix: adjust target to the same value as XMRig would use
target = std::numeric_limits<uint64_t>::max() / (std::numeric_limits<uint32_t>::max() / (target >> 32));
}
share->m_req.data = share;

Loading…
Cancel
Save