0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

rpc/getpeerinfo: bytesrecv_per_msg is a dynamic dictionary

It is not a dictionary with the single key 'msg'.
This commit is contained in:
Karl-Johan Alm 2021-05-11 19:00:52 +09:00
parent eb4fb7e507
commit c8cf0a3d51
No known key found for this signature in database
GPG key ID: 57AF762DB3353322

View file

@ -159,7 +159,7 @@ static RPCHelpMan getpeerinfo()
"When a message type is not listed in this json object, the bytes sent are 0.\n"
"Only known message types can appear as keys in the object."}
}},
{RPCResult::Type::OBJ, "bytesrecv_per_msg", "",
{RPCResult::Type::OBJ_DYN, "bytesrecv_per_msg", "",
{
{RPCResult::Type::NUM, "msg", "The total bytes received aggregated by message type\n"
"When a message type is not listed in this json object, the bytes received are 0.\n"