merge bitcoin#20756: Add missing field (permissions) to the getpeerinfo help

This commit is contained in:
Kittywhiskers Van Gogh 2020-12-23 11:38:59 -08:00
parent d0c596e91d
commit b76e029e44
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -145,6 +145,10 @@ static RPCHelpMan getpeerinfo()
{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::OBJ_DYN, "bytessent_per_msg", "",
{
{RPCResult::Type::NUM, "msg", "The total bytes sent aggregated by message type\n"