[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.
This commit is contained in:
Amiti Uttarwar 2020-12-23 11:38:59 -08:00
parent e669c3156f
commit 667d203687

View file

@ -143,6 +143,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", "",
{