From 1a75b201fdf9d69216c717e6afac570af05506b2 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Sun, 25 Aug 2024 11:53:20 +0200 Subject: [PATCH] Stratum: don't show the shutdown warning for low diff shares --- src/stratum_server.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stratum_server.cpp b/src/stratum_server.cpp index 1e6092cd..42b1b7f4 100644 --- a/src/stratum_server.cpp +++ b/src/stratum_server.cpp @@ -909,11 +909,11 @@ void StratumServer::on_share_found(uv_work_t* req) const uint64_t target = share->m_target; const uint64_t hashes = share->m_hashes; - if (pool->stopped()) { - LOGWARN(0, "p2pool is shutting down, but a share was found. Trying to process it anyway!"); - } - if (share->m_highEnoughDifficulty) { + if (pool->stopped()) { + LOGWARN(0, "p2pool is shutting down, but a share was found. Trying to process it anyway!"); + } + uint8_t blob[128]; uint64_t height; difficulty_type difficulty;