ソースを参照

Remove maxuploadtargets recommended minimum

tags/v0.15.1
Jonas Schnelli 4年前
コミット
1b6bcdd3aa
コミッターのメールアドレスに関連付けられたアカウントが存在しません
2個のファイルの変更1行の追加6行の削除
  1. 1
    2
      doc/reduce-traffic.md
  2. 0
    4
      src/net.cpp

+ 1
- 2
doc/reduce-traffic.md ファイルの表示

@@ -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.

+ 0
- 4
src/net.cpp ファイルの表示

@@ -2362,11 +2362,7 @@ void CConnman::RecordBytesSent(uint64_t bytes)
void CConnman::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 CConnman::GetMaxOutboundTarget()

読み込み中…
キャンセル
保存