Skip to content

Commit

Permalink
Remove maxuploadtargets recommended minimum
Browse files Browse the repository at this point in the history
Github-Pull: #8712
Rebased-From: 1b6bcdd3aa379a50c960e23d7c55db8294e76f7f
  • Loading branch information
jonasschnelli authored and laanwj committed Sep 26, 2016
1 parent a5ec248 commit 23feab1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions doc/reduce-traffic.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ This is *not* a hard limit; only a threshold to minimize the outbound
traffic. When the limit is about to be reached, the uploaded data is cut by no
longer serving historic blocks (blocks older than one week).
Keep in mind that new nodes require other nodes that are willing to serve
historic blocks. **The recommended minimum is 144 blocks per day (max. 144MB
per day)**
historic blocks.

Whitelisted peers will never be disconnected, although their traffic counts for
calculating the target.
Expand Down
4 changes: 0 additions & 4 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 23feab1

Please sign in to comment.