@@ -118,6 +118,7 @@ static RPCHelpMan getpeerinfo()
118
118
{RPCResult::Type::STR, " addr" , " (host:port) The IP address and port of the peer" },
119
119
{RPCResult::Type::STR, " addrbind" , " (ip:port) Bind address of the connection to the peer" },
120
120
{RPCResult::Type::STR, " addrlocal" , " (ip:port) Local address as reported by the peer" },
121
+ {RPCResult::Type::BOOL, " addr_relay_enabled" , " Whether we participate in address relay with this peer" },
121
122
{RPCResult::Type::STR, " network" , " Network (" + Join (GetNetworkNames (/* append_unroutable */ true ), " , " ) + " )" },
122
123
{RPCResult::Type::NUM, " mapped_as" , " The AS in the BGP route to the peer used for diversifying\n "
123
124
" peer selection (only available if the asmap config flag is set)" },
@@ -201,6 +202,7 @@ static RPCHelpMan getpeerinfo()
201
202
if (!(stats.addrLocal .empty ())) {
202
203
obj.pushKV (" addrlocal" , stats.addrLocal );
203
204
}
205
+ obj.pushKV (" addr_relay_enabled" , statestats.m_addr_relay_enabled );
204
206
obj.pushKV (" network" , GetNetworkName (stats.m_network ));
205
207
if (stats.m_mapped_as != 0 ) {
206
208
obj.pushKV (" mapped_as" , uint64_t (stats.m_mapped_as ));
0 commit comments