Skip to content

Commit 5602ea0

Browse files
amitiuttarwarComputerCraftr
authored andcommitted
[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
1 parent 577b8b6 commit 5602ea0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rpc/net.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ static RPCHelpMan getpeerinfo()
141141
}},
142142
{RPCResult::Type::BOOL, "whitelisted", /* optional */ true, "Whether the peer is whitelisted with default permissions\n"
143143
"(DEPRECATED, returned only if config option -deprecatedrpc=whitelisted is passed)"},
144+
{RPCResult::Type::ARR, "permissions", "Any special permissions that have been granted to this peer",
145+
{
146+
{RPCResult::Type::STR, "permission_type", Join(NET_PERMISSIONS_DOC, ",\n") + ".\n"},
147+
}},
144148
{RPCResult::Type::NUM, "minfeefilter", "The minimum fee rate for transactions this peer accepts"},
145149
{RPCResult::Type::OBJ_DYN, "bytessent_per_msg", "",
146150
{

0 commit comments

Comments
 (0)