mirror of
https://github.com/monero-project/monero.git
synced 2026-07-31 16:10:38 -07:00
Merge pull request #5933
3455efa ban peers sending bad pow outright (moneromooo-monero)
This commit is contained in:
@@ -1723,6 +1723,7 @@ bool Blockchain::handle_alternative_block(const block& b, const crypto::hash& id
|
||||
{
|
||||
MERROR_VER("Block with id: " << id << std::endl << " for alternative chain, does not have enough proof of work: " << proof_of_work << std::endl << " expected difficulty: " << current_diff);
|
||||
bvc.m_verifivation_failed = true;
|
||||
bvc.m_bad_pow = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -3749,6 +3750,7 @@ leave:
|
||||
{
|
||||
MERROR_VER("Block with id: " << id << std::endl << "does not have enough proof of work: " << proof_of_work << " at height " << blockchain_height << ", unexpected difficulty: " << current_diffic);
|
||||
bvc.m_verifivation_failed = true;
|
||||
bvc.m_bad_pow = true;
|
||||
goto leave;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user