From bdd34c5f56ab82c2bc96c71f825ac320851f8b5d Mon Sep 17 00:00:00 2001 From: sech1 Date: Tue, 9 Sep 2025 11:23:25 +0200 Subject: [PATCH] Fixed `on_share_found` background job counter --- src/stratum_server.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stratum_server.cpp b/src/stratum_server.cpp index 5bc2324..cb89397 100644 --- a/src/stratum_server.cpp +++ b/src/stratum_server.cpp @@ -1078,6 +1078,9 @@ void StratumServer::on_after_share_found(uv_work_t* req, int /*status*/) const char* reason = (k < array_size(reason_list)) ? reason_list[k] : "unknown"; LOGWARN(0, "INVALID SHARE: mainchain height " << share->m_mainchainHeight << ", sidechain height " << share->m_sidechainHeight << ", diff " << share->m_sidechainDifficulty << ", client " << static_cast(share->m_clientAddrString) << (*s ? ", user " : "") << s << ", reason: " << reason); } + } + + if (share->m_highEnoughDifficulty || server->m_enableFullValidation) { BACKGROUND_JOB_STOP(StratumServer::on_share_found); }