Stratum: fixed starting diff calculation

This commit is contained in:
SChernykh 2024-07-23 13:32:43 +02:00
parent b01ba2e116
commit 64a199be6d

View file

@ -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)) {