Skip to content

Commit

Permalink
Stratum: don't show the shutdown warning for low diff shares
Browse files Browse the repository at this point in the history
  • Loading branch information
SChernykh committed Aug 25, 2024
1 parent bbc36c3 commit 1a75b20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/stratum_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1a75b20

Please sign in to comment.