diff options
author | Jon Atack <jon@atack.com> | 2021-05-02 19:05:42 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-05-19 13:05:54 +0200 |
commit | 80ba294854e5025bcada58f1403858e6ea1d4380 (patch) | |
tree | 24849fb98a37fdf03e65b92d4b030dc547c9a07b /src/rpc | |
parent | a49f3ddbbabfb971a537f0a6c7affb24e20ff192 (diff) |
p2p: allow CConnman::GetAddresses() by network, add doxygen
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/net.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 1f6b6e8d7e..18e4355e88 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -28,6 +28,8 @@ #include <version.h> #include <warnings.h> +#include <optional> + #include <univalue.h> const std::vector<std::string> CONNECTION_TYPE_DOC{ @@ -878,7 +880,7 @@ static RPCHelpMan getnodeaddresses() if (count < 0) throw JSONRPCError(RPC_INVALID_PARAMETER, "Address count out of range"); // returns a shuffled list of CAddress - const std::vector<CAddress> vAddr{connman.GetAddresses(count, /* max_pct */ 0)}; + const std::vector<CAddress> vAddr{connman.GetAddresses(count, /* max_pct */ 0, /* network */ std::nullopt)}; UniValue ret(UniValue::VARR); for (const CAddress& addr : vAddr) { |