For now, make scan interval min 1 minute.

This commit is contained in:
Arthur Britto
2012-06-19 12:23:42 -07:00
parent 95bdb24bd9
commit 29d29e1c63
2 changed files with 6 additions and 2 deletions

View File

@@ -205,7 +205,9 @@ void Config::load()
VALIDATION_SEED.setSeedGeneric(strTemp);
(void) sectionSingleB(secConfig, SECTION_PEER_SSL_CIPHER_LIST, PEER_SSL_CIPHER_LIST);
if (sectionSingleB(secConfig, SECTION_PEER_SCAN_INTERVAL_MIN, strTemp))
// Minimum for min is 60 seconds.
PEER_SCAN_INTERVAL_MIN = MAX(60, boost::lexical_cast<int>(strTemp));
if (sectionSingleB(secConfig, SECTION_PEER_START_MAX, strTemp))

View File

@@ -27,8 +27,10 @@ const int SYSTEM_PEER_PORT = 6561;
// Allow anonymous DH.
#define DEFAULT_PEER_SSL_CIPHER_LIST "ALL:!LOW:!EXP:!MD5:@STRENGTH"
// 1 hour.
#define DEFAULT_PEER_SCAN_INTERVAL_MIN (60*60)
// Normal, recommend 1 hour.
// #define DEFAULT_PEER_SCAN_INTERVAL_MIN (60*60)
// Testing, recommend 1 minute.
#define DEFAULT_PEER_SCAN_INTERVAL_MIN (60)
// Maximum number of peers to try to connect to as client at once.
#define DEFAULT_PEER_START_MAX 5