From e9d28daba5e0a20a78102653e7ca6df0ebf3a282 Mon Sep 17 00:00:00 2001 From: Fuzzbawls Date: Wed, 11 Aug 2021 22:31:54 -0700 Subject: [PATCH] [Doc] Document getnodeaddresses in release notes --- doc/release-notes.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/doc/release-notes.md b/doc/release-notes.md index 0a8b7c794cc7d..bef2af2b2b0f1 100644 --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -369,6 +369,30 @@ Low-level RPC changes now the empty string `""` instead of `"wallet.dat"`. If PIVX is started with any `-wallet=` options, there is no change in behavior, and the name of any wallet is just its `` string. + +### New RPC Commands + +* `getnodeaddresses` + ``` + getnodeaddresses ( count "network" ) + + Return known addresses which can potentially be used to find new nodes in the network + + Arguments: + 1. count (numeric, optional) The maximum number of addresses to return. Specify 0 to return all known addresses. + 2. "network" (string, optional) Return only addresses of the specified network. Can be one of: ipv4, ipv6, onion. + Result: + [ + { + "time": ttt, (numeric) Timestamp in seconds since epoch (Jan 1 1970 GMT) when the node was last seen + "services": n, (numeric) The services offered by the node + "address": "host", (string) The address of the node + "port": n, (numeric) The port number of the node + "network": "xxxx" (string) The network (ipv4, ipv6, onion) the node connected through + } + ,... + ] + ``` Database cache memory increased --------------------------------