Skip to content

Commit 572e3cc

Browse files
jonatackmzumsande
authored andcommitted
rpc: describe quality/recency filtering in getnodeaddresses
Co-authored-by: Martin Zumsande <mzumsande@gmail.com> (cherry picked from commit 7c97561)
1 parent 4c0f978 commit 572e3cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rpc/net.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,9 @@ static RPCHelpMan setnetworkactive()
861861
static RPCHelpMan getnodeaddresses()
862862
{
863863
return RPCHelpMan{"getnodeaddresses",
864-
"\nReturn known addresses, which can potentially be used to find new nodes in the network.\n",
864+
"Return known addresses, after filtering for quality and recency.\n"
865+
"These can potentially be used to find new peers in the network.\n"
866+
"The total number of addresses known to the node may be higher.",
865867
{
866868
{"count", RPCArg::Type::NUM, RPCArg::Default{1}, "The maximum number of addresses to return. Specify 0 to return all known addresses."},
867869
{"network", RPCArg::Type::STR, RPCArg::DefaultHint{"all networks"}, "Return only addresses of the specified network. Can be one of: " + Join(GetNetworkNames(), ", ") + "."},

0 commit comments

Comments
 (0)