mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 21:10:24 -04:00
ban peers sending bad pow outright
PoW is expensive to verify, so be strict
This commit is contained in:
parent
faf5805fc0
commit
3455efafa8
9 changed files with 25 additions and 15 deletions
|
@ -138,6 +138,7 @@ namespace cryptonote
|
|||
bool on_connection_synchronized();
|
||||
bool should_download_next_span(cryptonote_connection_context& context, bool standby);
|
||||
void drop_connection(cryptonote_connection_context &context, bool add_fail, bool flush_all_spans);
|
||||
void drop_connection_with_score(cryptonote_connection_context &context, unsigned int score, bool flush_all_spans);
|
||||
bool kick_idle_peers();
|
||||
bool check_standby_peers();
|
||||
bool update_sync_search();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue