Stratum: don't show the shutdown warning for low diff shares

This commit is contained in:
SChernykh 2024-08-25 11:53:20 +02:00
parent bbc36c3869
commit 1a75b201fd

View file

@ -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;