aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-11-13 13:26:42 +0100
committerWladimir J. van der Laan <[email protected]>2015-11-13 13:27:33 +0100
commitd2e987aa19295e5da40b843aad7970f781a96ccd (patch)
tree165f0201e2e392a8ddb81af20e8111cdf19a82b1 /src/net.cpp
parentMerge pull request #6998 (diff)
parent[doc] Add -maxuploadtarget release notes (diff)
downloaddiscoin-d2e987aa19295e5da40b843aad7970f781a96ccd.tar.xz
discoin-d2e987aa19295e5da40b843aad7970f781a96ccd.zip
Merge pull request #6958
9c3ee3b [doc] Add -maxuploadtarget release notes (MarcoFalke) b27e81f [net] Cleanup maxuploadtarget (MarcoFalke)
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index ada4a1bb6..1ea50b249 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()