mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
StratumServer: ban clients that send incorrect shares
This commit is contained in:
parent
c6d26b48e2
commit
4175f4c8bc
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue