Add IP blocking for misbehaving nodes (adapted from Boolberry)

This commit is contained in:
Javier Smooth
2015-08-05 02:04:30 -07:00
parent f92079ebfd
commit b62d0f238d
7 changed files with 125 additions and 6 deletions
+5
View File
@@ -106,6 +106,11 @@
#define P2P_STAT_TRUSTED_PUB_KEY ""
#define P2P_DEFAULT_WHITELIST_CONNECTIONS_PERCENT 70
#define P2P_FAILED_ADDR_FORGET_SECONDS (60*60) //1 hour
#define P2P_IP_BLOCKTIME (60*60*24) //24 hour
#define P2P_IP_FAILS_BEFOR_BLOCK 10
#define P2P_IDLE_CONNECTION_KILL_INTERVAL (5*60) //5 minutes
#define ALLOW_DEBUG_COMMANDS
#define CRYPTONOTE_NAME "aeon"