Skip to content

Commit c8cf0a3

Browse files
committed
rpc/getpeerinfo: bytesrecv_per_msg is a dynamic dictionary
It is not a dictionary with the single key 'msg'.
1 parent eb4fb7e commit c8cf0a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static RPCHelpMan getpeerinfo()
159159
"When a message type is not listed in this json object, the bytes sent are 0.\n"
160160
"Only known message types can appear as keys in the object."}
161161
}},
162-
{RPCResult::Type::OBJ, "bytesrecv_per_msg", "",
162+
{RPCResult::Type::OBJ_DYN, "bytesrecv_per_msg", "",
163163
{
164164
{RPCResult::Type::NUM, "msg", "The total bytes received aggregated by message type\n"
165165
"When a message type is not listed in this json object, the bytes received are 0.\n"

0 commit comments

Comments
 (0)