diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2020-12-23 11:38:59 -0800 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-12-26 21:28:15 +0100 |
commit | b1c0f97483f01f8836e5d83e98c881e44018cde5 (patch) | |
tree | e7cedadf83542520c6482831f5da66de8a65729a /src/rpc | |
parent | 1fda7db64f0f30c23724f6db14f8a49d3975c716 (diff) | |
download | bitcoin-b1c0f97483f01f8836e5d83e98c881e44018cde5.tar.xz |
[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
Diffstat (limited to 'src/rpc')
-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 f98ea63782..298529e4e7 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -141,6 +141,10 @@ static RPCHelpMan getpeerinfo() }}, {RPCResult::Type::BOOL, "whitelisted", /* optional */ true, "Whether the peer is whitelisted with default permissions\n" "(DEPRECATED, returned only if config option -deprecatedrpc=whitelisted is passed)"}, + {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", "", { |