From 3455efafa812d646f2eea42db14b761f34975147 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 24 Sep 2019 13:08:25 +0000 Subject: ban peers sending bad pow outright PoW is expensive to verify, so be strict --- src/cryptonote_basic/verification_context.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cryptonote_basic') diff --git a/src/cryptonote_basic/verification_context.h b/src/cryptonote_basic/verification_context.h index 3d7200fae..f5f663464 100644 --- a/src/cryptonote_basic/verification_context.h +++ b/src/cryptonote_basic/verification_context.h @@ -58,5 +58,6 @@ namespace cryptonote bool m_marked_as_orphaned; bool m_already_exists; bool m_partial_block_reward; + bool m_bad_pow; // if bad pow, bad peer outright for DoS protection }; } -- cgit v1.2.3