Skip to content

Commit c95c616

Browse files
committed
doc: improve listbanned help
Add descriptions for the address, ban_created, and banned_until fields.
1 parent dd3c8ea commit c95c616

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rpc/net.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -749,9 +749,9 @@ static RPCHelpMan listbanned()
749749
{
750750
{RPCResult::Type::OBJ, "", "",
751751
{
752-
{RPCResult::Type::STR, "address", ""},
753-
{RPCResult::Type::NUM_TIME, "ban_created", ""},
754-
{RPCResult::Type::NUM_TIME, "banned_until", ""},
752+
{RPCResult::Type::STR, "address", "The IP/Subnet of the banned node"},
753+
{RPCResult::Type::NUM_TIME, "ban_created", "The " + UNIX_EPOCH_TIME + " the ban was created"},
754+
{RPCResult::Type::NUM_TIME, "banned_until", "The " + UNIX_EPOCH_TIME + " the ban expires"},
755755
}},
756756
}},
757757
RPCExamples{

0 commit comments

Comments
 (0)