mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
rpc, net: improve mapped_as
doc for getrawaddrman/getpeerinfo
Before, we did not explicity say that both fields `{source_}mapped_as` (that are optional in getrawaddrman) will be only available if the asmap config flag is set. Co-authored-by: Jon Atack <jon@atack.com>
This commit is contained in:
parent
bdad0243be
commit
a16917fb59
2 changed files with 5 additions and 5 deletions
|
@ -678,7 +678,7 @@ public:
|
||||||
" \".\" - we do not relay addresses to this peer (addr_relay_enabled is false)\n"
|
" \".\" - we do not relay addresses to this peer (addr_relay_enabled is false)\n"
|
||||||
" addrl Total number of addresses dropped due to rate limiting\n"
|
" addrl Total number of addresses dropped due to rate limiting\n"
|
||||||
" age Duration of connection to the peer, in minutes\n"
|
" age Duration of connection to the peer, in minutes\n"
|
||||||
" asmap Mapped AS (Autonomous System) number in the BGP route to the peer, used for diversifying\n"
|
" asmap Mapped AS (Autonomous System) number at the end of the BGP route to the peer, used for diversifying\n"
|
||||||
" peer selection (only displayed if the -asmap config option is set)\n"
|
" peer selection (only displayed if the -asmap config option is set)\n"
|
||||||
" id Peer index, in increasing order of peer connections since node startup\n"
|
" id Peer index, in increasing order of peer connections since node startup\n"
|
||||||
" address IP address and port of the peer\n"
|
" address IP address and port of the peer\n"
|
||||||
|
|
|
@ -129,8 +129,8 @@ static RPCHelpMan getpeerinfo()
|
||||||
{RPCResult::Type::STR, "addrbind", /*optional=*/true, "(ip:port) Bind address of the connection to the peer"},
|
{RPCResult::Type::STR, "addrbind", /*optional=*/true, "(ip:port) Bind address of the connection to the peer"},
|
||||||
{RPCResult::Type::STR, "addrlocal", /*optional=*/true, "(ip:port) Local address as reported by the peer"},
|
{RPCResult::Type::STR, "addrlocal", /*optional=*/true, "(ip:port) Local address as reported by the peer"},
|
||||||
{RPCResult::Type::STR, "network", "Network (" + Join(GetNetworkNames(/*append_unroutable=*/true), ", ") + ")"},
|
{RPCResult::Type::STR, "network", "Network (" + Join(GetNetworkNames(/*append_unroutable=*/true), ", ") + ")"},
|
||||||
{RPCResult::Type::NUM, "mapped_as", /*optional=*/true, "The AS in the BGP route to the peer used for diversifying\n"
|
{RPCResult::Type::NUM, "mapped_as", /*optional=*/true, "Mapped AS (Autonomous System) number at the end of the BGP route to the peer, used for diversifying\n"
|
||||||
"peer selection (only available if the asmap config flag is set)"},
|
"peer selection (only displayed if the -asmap config option is set)"},
|
||||||
{RPCResult::Type::STR_HEX, "services", "The services offered"},
|
{RPCResult::Type::STR_HEX, "services", "The services offered"},
|
||||||
{RPCResult::Type::ARR, "servicesnames", "the services offered, in human-readable form",
|
{RPCResult::Type::ARR, "servicesnames", "the services offered, in human-readable form",
|
||||||
{
|
{
|
||||||
|
@ -1150,14 +1150,14 @@ static RPCHelpMan getrawaddrman()
|
||||||
{RPCResult::Type::OBJ_DYN, "table", "buckets with addresses in the address manager table ( new, tried )", {
|
{RPCResult::Type::OBJ_DYN, "table", "buckets with addresses in the address manager table ( new, tried )", {
|
||||||
{RPCResult::Type::OBJ, "bucket/position", "the location in the address manager table (<bucket>/<position>)", {
|
{RPCResult::Type::OBJ, "bucket/position", "the location in the address manager table (<bucket>/<position>)", {
|
||||||
{RPCResult::Type::STR, "address", "The address of the node"},
|
{RPCResult::Type::STR, "address", "The address of the node"},
|
||||||
{RPCResult::Type::NUM, "mapped_as", /*optional=*/true, "The ASN mapped to the IP of this peer per our current ASMap"},
|
{RPCResult::Type::NUM, "mapped_as", /*optional=*/true, "Mapped AS (Autonomous System) number at the end of the BGP route to the peer, used for diversifying peer selection (only displayed if the -asmap config option is set)"},
|
||||||
{RPCResult::Type::NUM, "port", "The port number of the node"},
|
{RPCResult::Type::NUM, "port", "The port number of the node"},
|
||||||
{RPCResult::Type::STR, "network", "The network (" + Join(GetNetworkNames(), ", ") + ") of the address"},
|
{RPCResult::Type::STR, "network", "The network (" + Join(GetNetworkNames(), ", ") + ") of the address"},
|
||||||
{RPCResult::Type::NUM, "services", "The services offered by the node"},
|
{RPCResult::Type::NUM, "services", "The services offered by the node"},
|
||||||
{RPCResult::Type::NUM_TIME, "time", "The " + UNIX_EPOCH_TIME + " when the node was last seen"},
|
{RPCResult::Type::NUM_TIME, "time", "The " + UNIX_EPOCH_TIME + " when the node was last seen"},
|
||||||
{RPCResult::Type::STR, "source", "The address that relayed the address to us"},
|
{RPCResult::Type::STR, "source", "The address that relayed the address to us"},
|
||||||
{RPCResult::Type::STR, "source_network", "The network (" + Join(GetNetworkNames(), ", ") + ") of the source address"},
|
{RPCResult::Type::STR, "source_network", "The network (" + Join(GetNetworkNames(), ", ") + ") of the source address"},
|
||||||
{RPCResult::Type::NUM, "source_mapped_as", /*optional=*/true, "The ASN mapped to the IP of this peer's source per our current ASMap"}
|
{RPCResult::Type::NUM, "source_mapped_as", /*optional=*/true, "Mapped AS (Autonomous System) number at the end of the BGP route to the source, used for diversifying peer selection (only displayed if the -asmap config option is set)"}
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue