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
committed by Jack Grigg
parent f9f48667be
commit 8a5ae3c7a9
3 changed files with 5 additions and 3 deletions

View File

@@ -61,6 +61,8 @@ static const bool DEFAULT_UPNP = false;
static const size_t MAPASKFOR_MAX_SZ = MAX_INV_SZ;
/** The maximum number of entries in setAskFor (larger due to getdata latency)*/
static const size_t SETASKFOR_MAX_SZ = 2 * MAX_INV_SZ;
/** The maximum number of peer connections to maintain. */
static const unsigned int DEFAULT_MAX_PEER_CONNECTIONS = 125;
unsigned int ReceiveFloodSize();
unsigned int SendBufferSize();