Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
static const bool DEFAULT_LISTEN = true; | static const bool DEFAULT_LISTEN = true; | ||||
/** -upnp default */ | /** -upnp default */ | ||||
#ifdef USE_UPNP | #ifdef USE_UPNP | ||||
static const bool DEFAULT_UPNP = USE_UPNP; | static const bool DEFAULT_UPNP = USE_UPNP; | ||||
#else | #else | ||||
static const bool DEFAULT_UPNP = false; | static const bool DEFAULT_UPNP = false; | ||||
#endif | #endif | ||||
/** The maximum number of peer connections to maintain. */ | /** The maximum number of peer connections to maintain. */ | ||||
static const unsigned int DEFAULT_MAX_PEER_CONNECTIONS = 125; | static const unsigned int DEFAULT_MAX_PEER_CONNECTIONS = 4096; | ||||
/** The default for -maxuploadtarget. 0 = Unlimited */ | /** The default for -maxuploadtarget. 0 = Unlimited */ | ||||
static const uint64_t DEFAULT_MAX_UPLOAD_TARGET = 0; | static const uint64_t DEFAULT_MAX_UPLOAD_TARGET = 0; | ||||
/** The default timeframe for -maxuploadtarget. 1 day. */ | /** The default timeframe for -maxuploadtarget. 1 day. */ | ||||
static const uint64_t MAX_UPLOAD_TIMEFRAME = 60 * 60 * 24; | static const uint64_t MAX_UPLOAD_TIMEFRAME = 60 * 60 * 24; | ||||
/** Default for blocks only*/ | /** Default for blocks only*/ | ||||
static const bool DEFAULT_BLOCKSONLY = false; | static const bool DEFAULT_BLOCKSONLY = false; | ||||
/** -peertimeout default */ | /** -peertimeout default */ | ||||
static const int64_t DEFAULT_PEER_CONNECT_TIMEOUT = 60; | static const int64_t DEFAULT_PEER_CONNECT_TIMEOUT = 60; | ||||
▲ Show 20 Lines • Show All 975 Lines • Show Last 20 Lines |