aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarol Rodriguez <jarolrod@tutanota.com>2021-04-06 18:18:52 -0400
committerJarol Rodriguez <jarolrod@tutanota.com>2021-04-06 18:22:20 -0400
commitc95c61657afd058b46549fb3d65633d7c736f5fc (patch)
tree2b8a23227d6a23f59fb0b229f89c99266fb7b649
parentdd3c8eaa3399b28dc78a883ff78cbe7cc5c31b5b (diff)
doc: improve listbanned help
Add descriptions for the address, ban_created, and banned_until fields.
-rw-r--r--src/rpc/net.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp
index 41e5ea1c6c..27ff6bcdaf 100644
--- a/src/rpc/net.cpp
+++ b/src/rpc/net.cpp
@@ -749,9 +749,9 @@ static RPCHelpMan listbanned()
{
{RPCResult::Type::OBJ, "", "",
{
- {RPCResult::Type::STR, "address", ""},
- {RPCResult::Type::NUM_TIME, "ban_created", ""},
- {RPCResult::Type::NUM_TIME, "banned_until", ""},
+ {RPCResult::Type::STR, "address", "The IP/Subnet of the banned node"},
+ {RPCResult::Type::NUM_TIME, "ban_created", "The " + UNIX_EPOCH_TIME + " the ban was created"},
+ {RPCResult::Type::NUM_TIME, "banned_until", "The " + UNIX_EPOCH_TIME + " the ban expires"},
}},
}},
RPCExamples{