aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_config.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-26 12:40:40 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-26 12:45:28 +0000
commiteef164f7cc805ecf1881812cebb972ad0ce58edb (patch)
tree53e642585b1187998de3daff9f6802b53dc38880 /src/cryptonote_config.h
parentMerge pull request #4988 (diff)
downloadmonero-eef164f7cc805ecf1881812cebb972ad0ce58edb.tar.xz
cryptonote_protocol_handler: search for syncing peers in "cruise mode"
When all our outgoing peer slots are filled, we cycle one peer at a time looking for syncing peers until we have at least two such peers. This brings two advantages: - Peers without incoming connections will find more syncing peers that before, thereby strengthening network decentralization - Peers will have more resistance to isolation attacks, as they are more likely to find a "good" peer than they were before
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 93db71705..f13c6ba90 100644
--- a/src/cryptonote_config.h
+++ b/src/cryptonote_config.h
@@ -114,6 +114,7 @@
#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_DEFAULT_SYNC_SEARCH_CONNECTIONS_COUNT 2
#define P2P_DEFAULT_LIMIT_RATE_UP 2048 // kB/s
#define P2P_DEFAULT_LIMIT_RATE_DOWN 8192 // kB/s