Skip to content

Commit 5ba829e

Browse files
committed
rpc: fix getpeerinfo RPCResult mapped_as type
and mention it is only available if the asmap config flag is set.
1 parent c90b9a2 commit 5ba829e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rpc/net.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ static UniValue getpeerinfo(const JSONRPCRequest& request)
8686
{RPCResult::Type::STR, "addr", "(host:port) The IP address and port of the peer"},
8787
{RPCResult::Type::STR, "addrbind", "(ip:port) Bind address of the connection to the peer"},
8888
{RPCResult::Type::STR, "addrlocal", "(ip:port) Local address as reported by the peer"},
89-
{RPCResult::Type::STR, "mapped_as", "The AS in the BGP route to the peer used for diversifying peer selection"},
89+
{RPCResult::Type::NUM, "mapped_as", "The AS in the BGP route to the peer used for diversifying\n"
90+
"peer selection (only available if the asmap config flag is set)"},
9091
{RPCResult::Type::STR_HEX, "services", "The services offered"},
9192
{RPCResult::Type::ARR, "servicesnames", "the services offered, in human-readable form",
9293
{

0 commit comments

Comments
 (0)