Skip to content

Commit e9d28da

Browse files
committed
[Doc] Document getnodeaddresses in release notes
1 parent ebe2a46 commit e9d28da

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

doc/release-notes.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,30 @@ Low-level RPC changes
369369
now the empty string `""` instead of `"wallet.dat"`. If PIVX is started
370370
with any `-wallet=<path>` options, there is no change in behavior, and the
371371
name of any wallet is just its `<path>` string.
372+
373+
### New RPC Commands
374+
375+
* `getnodeaddresses`
376+
```
377+
getnodeaddresses ( count "network" )
378+
379+
Return known addresses which can potentially be used to find new nodes in the network
380+
381+
Arguments:
382+
1. count (numeric, optional) The maximum number of addresses to return. Specify 0 to return all known addresses.
383+
2. "network" (string, optional) Return only addresses of the specified network. Can be one of: ipv4, ipv6, onion.
384+
Result:
385+
[
386+
{
387+
"time": ttt, (numeric) Timestamp in seconds since epoch (Jan 1 1970 GMT) when the node was last seen
388+
"services": n, (numeric) The services offered by the node
389+
"address": "host", (string) The address of the node
390+
"port": n, (numeric) The port number of the node
391+
"network": "xxxx" (string) The network (ipv4, ipv6, onion) the node connected through
392+
}
393+
,...
394+
]
395+
```
372396
373397
Database cache memory increased
374398
--------------------------------

0 commit comments

Comments
 (0)