Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
* Time after which to disconnect, after waiting for a ping response (or | * Time after which to disconnect, after waiting for a ping response (or | ||||
* inactivity). | * inactivity). | ||||
*/ | */ | ||||
static const int TIMEOUT_INTERVAL = 20 * 60; | static const int TIMEOUT_INTERVAL = 20 * 60; | ||||
/** Run the feeler connection loop once every 2 minutes or 120 seconds. **/ | /** Run the feeler connection loop once every 2 minutes or 120 seconds. **/ | ||||
static const int FEELER_INTERVAL = 120; | static const int FEELER_INTERVAL = 120; | ||||
/** The maximum number of new addresses to accumulate before announcing. */ | /** The maximum number of new addresses to accumulate before announcing. */ | ||||
static const unsigned int MAX_ADDR_TO_SEND = 1000; | static const unsigned int MAX_ADDR_TO_SEND = 1000; | ||||
// TODO: remove ADDRMAN_GETADDR_MAX and let the caller specify this limit with | |||||
// MAX_ADDR_TO_SEND. | |||||
static_assert(MAX_ADDR_TO_SEND == ADDRMAN_GETADDR_MAX, | |||||
"Max allowed ADDR message size should be equal to the max number " | |||||
"of records returned from AddrMan."); | |||||
/** Maximum length of the user agent string in `version` message */ | /** Maximum length of the user agent string in `version` message */ | ||||
static const unsigned int MAX_SUBVERSION_LENGTH = 256; | static const unsigned int MAX_SUBVERSION_LENGTH = 256; | ||||
/** | /** | ||||
* Maximum number of automatic outgoing nodes over which we'll relay everything | * Maximum number of automatic outgoing nodes over which we'll relay everything | ||||
* (blocks, tx, addrs, etc) | * (blocks, tx, addrs, etc) | ||||
*/ | */ | ||||
static const int MAX_OUTBOUND_FULL_RELAY_CONNECTIONS = 8; | static const int MAX_OUTBOUND_FULL_RELAY_CONNECTIONS = 8; | ||||
/** Maximum number of addnode outgoing nodes */ | /** Maximum number of addnode outgoing nodes */ | ||||
▲ Show 20 Lines • Show All 1,257 Lines • Show Last 20 Lines |