aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2015-11-06 00:05:06 +0100
committerMarcoFalke <falke.marco@gmail.com>2015-11-12 20:45:57 +0100
commitb27e81f115e67bffee2c35c1c96082879160f6e1 (patch)
treefb10c90527ba68b09c8a8bab30626606235e6a6a /src/net.h
parentbd629d77edbeac6ce71a34f6d557c4e00513be44 (diff)
downloadbitcoin-b27e81f115e67bffee2c35c1c96082879160f6e1.tar.xz
[net] Cleanup maxuploadtarget
* log: nMaxOutboundLimit is in bytes * log: Hide misleading -maxuploadtarget=0 warning * qa : Minor cleanup to maxuploadtarget rpc tests * net: Use DEFAULT_MAX_UPLOAD_TARGET = 0
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index d89244523e..cd2d225d73 100644
--- a/src/net.h
+++ b/src/net.h
@@ -60,6 +60,8 @@ static const bool DEFAULT_UPNP = false;
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;
+/** The default for -maxuploadtarget. 0 = Unlimited */
+static const uint64_t DEFAULT_MAX_UPLOAD_TARGET = 0;
unsigned int ReceiveFloodSize();
unsigned int SendBufferSize();