Remove maxuploadtargets recommended minimum

Github-Pull: #8712
Rebased-From: 1b6bcdd3aa
This commit is contained in:
Jonas Schnelli
2016-09-13 18:08:17 +02:00
committed by Wladimir J. van der Laan
parent a5ec248323
commit 23feab1f38
2 changed files with 1 additions and 6 deletions

View File

@@ -2226,11 +2226,7 @@ void CNode::RecordBytesSent(uint64_t bytes)
void CNode::SetMaxOutboundTarget(uint64_t limit)
{
LOCK(cs_totalBytesSent);
uint64_t recommendedMinimum = (nMaxOutboundTimeframe / 600) * MAX_BLOCK_SERIALIZED_SIZE;
nMaxOutboundLimit = limit;
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()