aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.h
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-12-10 17:41:59 -0800
committerAlexander Blair <snipa@jagtech.io>2020-12-10 17:41:59 -0800
commit28e5e4298660cb483da62ac882f5dcdd74b3480c (patch)
tree78af8c6ce230d5d2c8e1fdb6a3eb70cec034aba3 /src/cryptonote_protocol/cryptonote_protocol_handler.h
parent5b62a6f316ecd042fafea3014960bc844ee28eee (diff)
parentd660f22ed1aa544750e57b6f90fcf4e3e2ded038 (diff)
downloadmonzero-core-28e5e4298660cb483da62ac882f5dcdd74b3480c.tar.gz
monzero-core-28e5e4298660cb483da62ac882f5dcdd74b3480c.tar.xz
monzero-core-28e5e4298660cb483da62ac882f5dcdd74b3480c.zip
Merge pull request #7110
d660f22ed protocol: drop origin IP if a block fails to verify in sync mode (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_handler.h')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.h b/src/cryptonote_protocol/cryptonote_protocol_handler.h
index 7093f7826..6368f8190 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.h
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.h
@@ -142,6 +142,7 @@ namespace cryptonote
bool should_ask_for_pruned_data(cryptonote_connection_context& context, uint64_t first_block_height, uint64_t nblocks, bool check_block_weights) const;
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);
+ void drop_connections(const epee::net_utils::network_address address);
bool kick_idle_peers();
bool check_standby_peers();
bool update_sync_search();