mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-08 19:59:30 +00:00
Fixed rare "low diff share" errors
This commit is contained in:
parent
b267c19a45
commit
b25e5449c8
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue