Skip to content

Commit 7c97561

Browse files
jonatackmzumsande
andcommitted
rpc: describe quality/recency filtering in getnodeaddresses
Co-authored-by: Martin Zumsande <[email protected]>
1 parent 1337b93 commit 7c97561

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
@@ -847,7 +847,9 @@ static RPCHelpMan setnetworkactive()
847847
static RPCHelpMan getnodeaddresses()
848848
{
849849
return RPCHelpMan{"getnodeaddresses",
850-
"\nReturn known addresses, which can potentially be used to find new nodes in the network.\n",
850+
"Return known addresses, after filtering for quality and recency.\n"
851+
"These can potentially be used to find new peers in the network.\n"
852+
"The total number of addresses known to the node may be higher.",
851853
{
852854
{"count", RPCArg::Type::NUM, RPCArg::Default{1}, "The maximum number of addresses to return. Specify 0 to return all known addresses."},
853855
{"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)