add (max)uploadtarget infos to getnettotals RPC help

Zcash: Update recommended minimum -maxuploadtarget
This commit is contained in:
Jonas Schnelli 2015-11-12 13:14:54 +01:00 committed by Kris Nuttycombe
parent 97e9a8162f
commit 69ca2dde56
3 changed files with 12 additions and 3 deletions

View File

@ -19,7 +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 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). longer serving historic blocks (blocks older than one week).
Keep in mind that new nodes require other nodes that are willing to serve 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 historic blocks. **The recommended minimum is 1152 blocks per day (max. 2304MB
per day)** per day)**
Whitelisted peers will never be disconnected, although their traffic counts for Whitelisted peers will never be disconnected, although their traffic counts for

View File

@ -18,7 +18,7 @@ Moreover, any SPV peer is disconnected when they request a filtered block.
This option can be specified in MiB per day and is turned off by default This option can be specified in MiB per day and is turned off by default
(`-maxuploadtarget=0`). (`-maxuploadtarget=0`).
The recommended minimum is 144 * MAX_BLOCK_SIZE (currently 144MB) per day. The recommended minimum is 1152 * MAX_BLOCK_SIZE (currently 2304MB) per day.
Whitelisted peers will never be disconnected, although their traffic counts for Whitelisted peers will never be disconnected, although their traffic counts for
calculating the target. calculating the target.

View File

@ -363,7 +363,16 @@ UniValue getnettotals(const UniValue& params, bool fHelp)
"{\n" "{\n"
" \"totalbytesrecv\": n, (numeric) Total bytes received\n" " \"totalbytesrecv\": n, (numeric) Total bytes received\n"
" \"totalbytessent\": n, (numeric) Total bytes sent\n" " \"totalbytessent\": n, (numeric) Total bytes sent\n"
" \"timemillis\": t (numeric) Total cpu time\n" " \"timemillis\": t, (numeric) Total cpu time\n"
" \"uploadtarget\":\n"
" {\n"
" \"timeframe\": n, (numeric) Length of the measuring timeframe in seconds\n"
" \"target\": n, (numeric) Target in bytes\n"
" \"target_reached\": true|false, (boolean) True if target is reached\n"
" \"serve_historical_blocks\": true|false, (boolean) True if serving historical blocks\n"
" \"bytes_left_in_cycle\": t, (numeric) Bytes left in current time cycle\n"
" \"time_left_in_cycle\": t (numeric) Seconds left in current time cycle\n"
" }\n"
"}\n" "}\n"
"\nExamples:\n" "\nExamples:\n"
+ HelpExampleCli("getnettotals", "") + HelpExampleCli("getnettotals", "")