aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2021-05-11 19:00:52 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2021-05-11 19:00:52 +0900
commitc8cf0a3d513b8c892f1ae16b8c0cda184064a07b (patch)
tree843c6dee1827a659fdee595b0fc030ac4a4117e8 /src/rpc
parenteb4fb7e507b583bd4ae8d1e3747f41616c782ded (diff)
downloadbitcoin-c8cf0a3d513b8c892f1ae16b8c0cda184064a07b.tar.xz
rpc/getpeerinfo: bytesrecv_per_msg is a dynamic dictionary
It is not a dictionary with the single key 'msg'.
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/net.cpp2
1 files changed, 1 insertions, 1 deletions
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"