mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-04-02 12:19:04 +00:00
Stratum: fixed starting diff calculation
This commit is contained in:
parent
b01ba2e116
commit
64a199be6d
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ bool StratumServer::on_login(StratumClient* client, uint32_t id, const char* log
|
|||
}
|
||||
else if (m_autoDiff) {
|
||||
// Limit autodiff to 4000000 for maximum compatibility
|
||||
target = std::max(std::max(target, AUTODIFF_START), TARGET_4_BYTES_LIMIT);
|
||||
target = std::max(target, std::max(AUTODIFF_START, TARGET_4_BYTES_LIMIT));
|
||||
}
|
||||
|
||||
if (get_custom_user(login, client->m_customUser)) {
|
||||
|
|
Loading…
Reference in a new issue