Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
* 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 */ | ||||
static const int MAX_ADDNODE_CONNECTIONS = 8; | static const int MAX_ADDNODE_CONNECTIONS = 8; | ||||
/** Maximum number of block-relay-only outgoing connections */ | /** Maximum number of block-relay-only outgoing connections */ | ||||
static const int MAX_BLOCKS_ONLY_CONNECTIONS = 2; | static const int MAX_BLOCKS_ONLY_CONNECTIONS = 2; | ||||
/** Maximum number of feeler connections */ | |||||
static const int MAX_FEELER_CONNECTIONS = 1; | |||||
/** -listen default */ | /** -listen default */ | ||||
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 | ||||
▲ Show 20 Lines • Show All 1,091 Lines • Show Last 20 Lines |