aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_config.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-04 13:59:51 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-05 13:41:48 +0000
commit446b3c865bbc43169aaa37fad230e4cbb700aaed (patch)
tree8c247cd6583575dd9fcd6d8d61e403885739c5a9 /src/cryptonote_config.h
parentMerge pull request #7010 (diff)
downloadmonero-446b3c865bbc43169aaa37fad230e4cbb700aaed.tar.xz
p2p: drop peers that spam peer lists
There's always some people who just want to abuse things
Diffstat (limited to '')
-rw-r--r--src/cryptonote_config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h
index 826cabe17..13f0c471b 100644
--- a/src/cryptonote_config.h
+++ b/src/cryptonote_config.h
@@ -132,6 +132,7 @@
#define P2P_DEFAULT_HANDSHAKE_INTERVAL 60 //secondes
#define P2P_DEFAULT_PACKET_MAX_SIZE 50000000 //50000000 bytes maximum packet size
#define P2P_DEFAULT_PEERS_IN_HANDSHAKE 250
+#define P2P_MAX_PEERS_IN_HANDSHAKE 250
#define P2P_DEFAULT_CONNECTION_TIMEOUT 5000 //5 seconds
#define P2P_DEFAULT_SOCKS_CONNECT_TIMEOUT 45 // seconds
#define P2P_DEFAULT_PING_CONNECTION_TIMEOUT 2000 //2 seconds