Skip to content

Commit 0b73807

Browse files
author
MarcoFalke
committed
Merge #9297: Various RPC help outputs updated
54ee3fc RPC help updated (Michael Rotarius)
2 parents 0595042 + 54ee3fc commit 0b73807

File tree

3 files changed

+43
-28
lines changed

3 files changed

+43
-28
lines changed

src/rpc/blockchain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ std::string EntryDescriptionString()
336336
" \"modifiedfee\" : n, (numeric) transaction fee with fee deltas used for mining priority\n"
337337
" \"time\" : n, (numeric) local time transaction entered pool in seconds since 1 Jan 1970 GMT\n"
338338
" \"height\" : n, (numeric) block height when transaction entered pool\n"
339-
" \"startingpriority\" : n, (numeric) priority when transaction entered pool\n"
340-
" \"currentpriority\" : n, (numeric) transaction priority now\n"
339+
" \"startingpriority\" : n, (numeric) DEPRECATED. Priority when transaction entered pool\n"
340+
" \"currentpriority\" : n, (numeric) DEPRECATED. Transaction priority now\n"
341341
" \"descendantcount\" : n, (numeric) number of in-mempool descendant transactions (including this one)\n"
342342
" \"descendantsize\" : n, (numeric) virtual transaction size of in-mempool descendants (including this one)\n"
343343
" \"descendantfees\" : n, (numeric) modified fees (see above) of in-mempool descendants (including this one)\n"
@@ -651,9 +651,9 @@ UniValue getblockheader(const JSONRPCRequest& request)
651651
" \"nonce\" : n, (numeric) The nonce\n"
652652
" \"bits\" : \"1d00ffff\", (string) The bits\n"
653653
" \"difficulty\" : x.xxx, (numeric) The difficulty\n"
654+
" \"chainwork\" : \"0000...1f3\" (string) Expected number of hashes required to produce the current chain (in hex)\n"
654655
" \"previousblockhash\" : \"hash\", (string) The hash of the previous block\n"
655656
" \"nextblockhash\" : \"hash\", (string) The hash of the next block\n"
656-
" \"chainwork\" : \"0000...1f3\" (string) Expected number of hashes required to produce the current chain (in hex)\n"
657657
"}\n"
658658
"\nResult (for verbose=false):\n"
659659
"\"data\" (string) A string that is serialized, hex-encoded data for block 'hash'.\n"

src/rpc/net.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,14 @@ UniValue getpeerinfo(const JSONRPCRequest& request)
100100
" \"inflight\": [\n"
101101
" n, (numeric) The heights of blocks we're currently asking from this peer\n"
102102
" ...\n"
103-
" ]\n"
103+
" ],\n"
104+
" \"whitelisted\": true|false, (boolean) Whether the peer is whitelisted\n"
104105
" \"bytessent_per_msg\": {\n"
105-
" \"addr\": n, (numeric) The total bytes sent aggregated by message type\n"
106+
" \"addr\": n, (numeric) The total bytes sent aggregated by message type\n"
106107
" ...\n"
107-
" }\n"
108+
" },\n"
108109
" \"bytesrecv_per_msg\": {\n"
109-
" \"addr\": n, (numeric) The total bytes received aggregated by message type\n"
110+
" \"addr\": n, (numeric) The total bytes received aggregated by message type\n"
110111
" ...\n"
111112
" }\n"
112113
" }\n"
@@ -411,6 +412,7 @@ UniValue getnetworkinfo(const JSONRPCRequest& request)
411412
" \"limited\": true|false, (boolean) is the network limited using -onlynet?\n"
412413
" \"reachable\": true|false, (boolean) is the network reachable?\n"
413414
" \"proxy\": \"host:port\" (string) the proxy that is used for this network, or empty if none\n"
415+
" \"proxy_randomize_credentials\": true|false, (string) Whether randomized credentials are used\n"
414416
" }\n"
415417
" ,...\n"
416418
" ],\n"
@@ -423,7 +425,7 @@ UniValue getnetworkinfo(const JSONRPCRequest& request)
423425
" }\n"
424426
" ,...\n"
425427
" ]\n"
426-
" \"warnings\": \"...\" (string) any network warnings (such as alert messages) \n"
428+
" \"warnings\": \"...\" (string) any network warnings\n"
427429
"}\n"
428430
"\nExamples:\n"
429431
+ HelpExampleCli("getnetworkinfo", "")

0 commit comments

Comments
 (0)