aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-01-29 16:39:00 +0100
committerJon Atack <jon@atack.com>2020-03-04 14:54:27 +0100
commit5ba829e12e99f119df56cab422f827b9be03fe57 (patch)
tree19d6269d5d9d78e105db9fa046a22891368f00b1 /src
parentc90b9a2399f4cead37bad39f388ce1255e123dc4 (diff)
rpc: fix getpeerinfo RPCResult `mapped_as` type
and mention it is only available if the asmap config flag is set.
Diffstat (limited to 'src')
-rw-r--r--src/rpc/net.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp
index 482c689285..085921095e 100644
--- a/src/rpc/net.cpp
+++ b/src/rpc/net.cpp
@@ -86,7 +86,8 @@ static UniValue getpeerinfo(const JSONRPCRequest& request)
{RPCResult::Type::STR, "addr", "(host:port) The IP address and port of the peer"},
{RPCResult::Type::STR, "addrbind", "(ip:port) Bind address of the connection to the peer"},
{RPCResult::Type::STR, "addrlocal", "(ip:port) Local address as reported by the peer"},
- {RPCResult::Type::STR, "mapped_as", "The AS in the BGP route to the peer used for diversifying peer selection"},
+ {RPCResult::Type::NUM, "mapped_as", "The AS in the BGP route to the peer used for diversifying\n"
+ "peer selection (only available if the asmap config flag is set)"},
{RPCResult::Type::STR_HEX, "services", "The services offered"},
{RPCResult::Type::ARR, "servicesnames", "the services offered, in human-readable form",
{