diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2020-12-23 11:38:59 -0800 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-01-05 09:27:23 +0100 |
commit | 19bcf178485c7d2c353581e514582bd569c66c00 (patch) | |
tree | dc2da07a8110e418ca95a1960fa91d8f24f8983b | |
parent | d0c75abb288afdd295c4aa9d7e747f13d5926327 (diff) |
[doc] Add permissions to the getpeerinfo help.
This field was already being returned, but the RPCHelpMan did not indicate
this. So, this PR updates the help text to match.
Github-Pull: #20756
Rebased-From: 667d203687708390bc0f43f2dd3f4ab427b88338
-rw-r--r-- | src/rpc/net.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 8c400c05a0..5c4a410a9f 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -117,6 +117,10 @@ static UniValue getpeerinfo(const JSONRPCRequest& request) {RPCResult::Type::NUM, "n", "The heights of blocks we're currently asking from this peer"}, }}, {RPCResult::Type::BOOL, "whitelisted", "Whether the peer is whitelisted"}, + {RPCResult::Type::ARR, "permissions", "Any special permissions that have been granted to this peer", + { + {RPCResult::Type::STR, "permission_type", Join(NET_PERMISSIONS_DOC, ",\n") + ".\n"}, + }}, {RPCResult::Type::NUM, "minfeefilter", "The minimum fee rate for transactions this peer accepts"}, {RPCResult::Type::OBJ_DYN, "bytessent_per_msg", "", { |