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

@@ -56,6 +56,8 @@ static const bool DEFAULT_UPNP = false;
#endif
/** The maximum number of entries in mapAskFor */
static const size_t MAPASKFOR_MAX_SZ = 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();