StratumServer: ban clients that send incorrect shares

This commit is contained in:
SChernykh 2021-08-28 18:40:50 +02:00
parent c6d26b48e2
commit 4175f4c8bc

View file

@ -530,7 +530,7 @@ void StratumServer::on_after_share_found(uv_work_t* req, int /*status*/)
return s.m_pos;
});
if (share->m_result == SubmittedShare::Result::LOW_DIFF) {
if ((share->m_result == SubmittedShare::Result::LOW_DIFF) || (share->m_result == SubmittedShare::Result::INVALID_POW)) {
client->ban(DEFAULT_BAN_TIME);
client->close();
}