From 64a199be6dec7924b41f857a401086f25e1ec9be Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Tue, 23 Jul 2024 13:32:43 +0200 Subject: [PATCH] Stratum: fixed starting diff calculation --- src/stratum_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratum_server.cpp b/src/stratum_server.cpp index 9a27351..beda290 100644 --- a/src/stratum_server.cpp +++ b/src/stratum_server.cpp @@ -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)) {