mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
rpc: improve getnodeaddresses help
This commit is contained in:
parent
1b9189866a
commit
5c446784b1
1 changed files with 4 additions and 4 deletions
|
@ -835,7 +835,7 @@ 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",
|
"\nReturn known addresses, which can potentially be used to find new nodes in the network.\n",
|
||||||
{
|
{
|
||||||
{"count", RPCArg::Type::NUM, /* default */ "1", "The maximum number of addresses to return. Specify 0 to return all known addresses."},
|
{"count", RPCArg::Type::NUM, /* default */ "1", "The maximum number of addresses to return. Specify 0 to return all known addresses."},
|
||||||
},
|
},
|
||||||
|
@ -844,10 +844,10 @@ static RPCHelpMan getnodeaddresses()
|
||||||
{
|
{
|
||||||
{RPCResult::Type::OBJ, "", "",
|
{RPCResult::Type::OBJ, "", "",
|
||||||
{
|
{
|
||||||
{RPCResult::Type::NUM_TIME, "time", "The " + UNIX_EPOCH_TIME + " of when the node was last seen"},
|
{RPCResult::Type::NUM_TIME, "time", "The " + UNIX_EPOCH_TIME + " when the node was last seen"},
|
||||||
{RPCResult::Type::NUM, "services", "The services offered"},
|
{RPCResult::Type::NUM, "services", "The services offered by the node"},
|
||||||
{RPCResult::Type::STR, "address", "The address of the node"},
|
{RPCResult::Type::STR, "address", "The address of the node"},
|
||||||
{RPCResult::Type::NUM, "port", "The port of the node"},
|
{RPCResult::Type::NUM, "port", "The port number of the node"},
|
||||||
{RPCResult::Type::STR, "network", "The network (" + Join(GetNetworkNames(), ", ") + ") the node connected through"},
|
{RPCResult::Type::STR, "network", "The network (" + Join(GetNetworkNames(), ", ") + ") the node connected through"},
|
||||||
}},
|
}},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue