Merge pull request #1701

8277e67f Add anchor connections (Miguel Herranz)
This commit is contained in:
Riccardo Spagni 2017-05-05 11:26:11 +02:00
commit ed09652a17
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
6 changed files with 208 additions and 18 deletions

View file

@ -109,6 +109,7 @@
#define P2P_DEFAULT_INVOKE_TIMEOUT 60*2*1000 //2 minutes
#define P2P_DEFAULT_HANDSHAKE_INVOKE_TIMEOUT 5000 //5 seconds
#define P2P_DEFAULT_WHITELIST_CONNECTIONS_PERCENT 70
#define P2P_DEFAULT_ANCHOR_CONNECTIONS_COUNT 2
#define P2P_FAILED_ADDR_FORGET_SECONDS (60*60) //1 hour
#define P2P_IP_BLOCKTIME (60*60*24) //24 hour