Consolidate individual references to the current maximum peer connection

value of 125 into a single constant declaration.
This commit is contained in:
Matt Quinn
2015-08-01 10:41:21 -07:00
parent 219b916545
commit 19dd40a25f
3 changed files with 5 additions and 3 deletions

View File

@@ -80,7 +80,7 @@ static CNode* pnodeLocalHost = NULL;
uint64_t nLocalHostNonce = 0;
static std::vector<ListenSocket> vhListenSocket;
CAddrMan addrman;
int nMaxConnections = 125;
int nMaxConnections = DEFAULT_MAX_PEER_CONNECTIONS;
int nWhiteConnections = 0;
bool fAddressesInitialized = false;