diff options
author | MarcoFalke <falke.marco@gmail.com> | 2015-11-06 00:05:06 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2015-11-12 20:45:57 +0100 |
commit | b27e81f115e67bffee2c35c1c96082879160f6e1 (patch) | |
tree | fb10c90527ba68b09c8a8bab30626606235e6a6a /src/net.cpp | |
parent | bd629d77edbeac6ce71a34f6d557c4e00513be44 (diff) |
[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.cpp')
-rw-r--r-- | src/net.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index ada4a1bb62..1ea50b2493 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2117,8 +2117,8 @@ void CNode::SetMaxOutboundTarget(uint64_t limit) uint64_t recommendedMinimum = (nMaxOutboundTimeframe / 600) * MAX_BLOCK_SIZE; nMaxOutboundLimit = limit; - if (limit < recommendedMinimum) - LogPrintf("Max outbound target is very small (%s) and will be overshot. Recommended minimum is %s\n.", nMaxOutboundLimit, recommendedMinimum); + if (limit > 0 && limit < recommendedMinimum) + LogPrintf("Max outbound target is very small (%s bytes) and will be overshot. Recommended minimum is %s bytes.\n", nMaxOutboundLimit, recommendedMinimum); } uint64_t CNode::GetMaxOutboundTarget() |