Skip to content

Commit 57b3459

Browse files
committed
Merge #8712: Remove maxuploadtargets recommended minimum
1b6bcdd Remove maxuploadtargets recommended minimum (Jonas Schnelli)
2 parents fa7caf6 + 1b6bcdd commit 57b3459

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

doc/reduce-traffic.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ This is *not* a hard limit; only a threshold to minimize the outbound
1919
traffic. When the limit is about to be reached, the uploaded data is cut by no
2020
longer serving historic blocks (blocks older than one week).
2121
Keep in mind that new nodes require other nodes that are willing to serve
22-
historic blocks. **The recommended minimum is 144 blocks per day (max. 144MB
23-
per day)**
22+
historic blocks.
2423

2524
Whitelisted peers will never be disconnected, although their traffic counts for
2625
calculating the target.

src/net.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2362,11 +2362,7 @@ void CConnman::RecordBytesSent(uint64_t bytes)
23622362
void CConnman::SetMaxOutboundTarget(uint64_t limit)
23632363
{
23642364
LOCK(cs_totalBytesSent);
2365-
uint64_t recommendedMinimum = (nMaxOutboundTimeframe / 600) * MAX_BLOCK_SERIALIZED_SIZE;
23662365
nMaxOutboundLimit = limit;
2367-
2368-
if (limit > 0 && limit < recommendedMinimum)
2369-
LogPrintf("Max outbound target is very small (%s bytes) and will be overshot. Recommended minimum is %s bytes.\n", nMaxOutboundLimit, recommendedMinimum);
23702366
}
23712367

23722368
uint64_t CConnman::GetMaxOutboundTarget()

0 commit comments

Comments
 (0)