rpc: describe quality/recency filtering in getnodeaddresses
Co-authored-by: Martin Zumsande <mzumsande@gmail.com>
This commit is contained in:
1 parent
1337b93f50
commit
7c975614c0
1 file changed
+3
-1
+3
-1
@@ -847,7 +847,9 @@ static RPCHelpMan setnetworkactive()
|
|||||||
static RPCHelpMan getnodeaddresses()
|
static RPCHelpMan getnodeaddresses()
|
||||||
{
|
{
|
||||||
return RPCHelpMan{"getnodeaddresses",
|
return RPCHelpMan{"getnodeaddresses",
|
||||||
"\nReturn known addresses, which can potentially be used to find new nodes in the network.\n",
|
"Return known addresses, after filtering for quality and recency.\n"
|
||||||
|
"These can potentially be used to find new peers in the network.\n"
|
||||||
|
"The total number of addresses known to the node may be higher.",
|
||||||
{
|
{
|
||||||
{"count", RPCArg::Type::NUM, RPCArg::Default{1}, "The maximum number of addresses to return. Specify 0 to return all known addresses."},
|
{"count", RPCArg::Type::NUM, RPCArg::Default{1}, "The maximum number of addresses to return. Specify 0 to return all known addresses."},
|
||||||
{"network", RPCArg::Type::STR, RPCArg::DefaultHint{"all networks"}, "Return only addresses of the specified network. Can be one of: " + Join(GetNetworkNames(), ", ") + "."},
|
{"network", RPCArg::Type::STR, RPCArg::DefaultHint{"all networks"}, "Return only addresses of the specified network. Can be one of: " + Join(GetNetworkNames(), ", ") + "."},
|
||||||
|
|||||||
Reference in new issue
Block a user