From c8cf0a3d513b8c892f1ae16b8c0cda184064a07b Mon Sep 17 00:00:00 2001 From: Karl-Johan Alm Date: Tue, 11 May 2021 19:00:52 +0900 Subject: rpc/getpeerinfo: bytesrecv_per_msg is a dynamic dictionary It is not a dictionary with the single key 'msg'. --- src/rpc/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rpc') diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 382c6f11ff..109f1391b9 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -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" -- cgit v1.2.3