diff options
author | Miguel Herranz <miguel@ipglider.org> | 2017-02-09 01:11:58 +0100 |
---|---|---|
committer | Miguel Herranz <miguel@ipglider.org> | 2017-02-10 23:28:54 +0100 |
commit | 8277e67f112fcf066b4530616560efec87f0b20e (patch) | |
tree | 3e842ce521cf06ab9e3b20fa52be2fbe72ccf4df /src/cryptonote_config.h | |
parent | Merge pull request #1679 (diff) | |
download | monero-8277e67f112fcf066b4530616560efec87f0b20e.tar.xz |
Add anchor connections
Based on https://eprint.iacr.org/2015/263.pdf 4. Anchor connections.
Peer list serialisation version bumped to 5.
Diffstat (limited to 'src/cryptonote_config.h')
-rw-r--r-- | src/cryptonote_config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index 97f2f2afc..3f15cee3f 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -107,6 +107,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 |