@@ -104,7 +104,6 @@ static RPCHelpMan getpeerinfo()
104
104
{RPCResult::Type::STR, " addr" , " (host:port) The IP address and port of the peer" },
105
105
{RPCResult::Type::STR, " addrbind" , " (ip:port) Bind address of the connection to the peer" },
106
106
{RPCResult::Type::STR, " addrlocal" , " (ip:port) Local address as reported by the peer" },
107
- {RPCResult::Type::BOOL, " addr_relay_enabled" , " Whether we participate in address relay with this peer" },
108
107
{RPCResult::Type::STR, " network" , " Network (" + Join (GetNetworkNames (/* append_unroutable */ true ), " , " ) + " )" },
109
108
{RPCResult::Type::STR, " mapped_as" , " The AS in the BGP route to the peer used for diversifying peer selection" },
110
109
{RPCResult::Type::STR_HEX, " services" , " The services offered" },
@@ -146,6 +145,7 @@ static RPCHelpMan getpeerinfo()
146
145
{
147
146
{RPCResult::Type::NUM, " n" , " The heights of blocks we're currently asking from this peer" },
148
147
}},
148
+ {RPCResult::Type::BOOL, " addr_relay_enabled" , " Whether we participate in address relay with this peer" },
149
149
{RPCResult::Type::BOOL, " whitelisted" , " Whether the peer is whitelisted" },
150
150
{RPCResult::Type::ARR, " permissions" , " Any special permissions that have been granted to this peer" ,
151
151
{
@@ -193,7 +193,6 @@ static RPCHelpMan getpeerinfo()
193
193
if (!(stats.addrLocal .empty ())) {
194
194
obj.pushKV (" addrlocal" , stats.addrLocal );
195
195
}
196
- obj.pushKV (" addr_relay_enabled" , statestats.m_addr_relay_enabled );
197
196
obj.pushKV (" network" , GetNetworkName (stats.m_network ));
198
197
if (stats.m_mapped_as != 0 ) {
199
198
obj.pushKV (" mapped_as" , uint64_t (stats.m_mapped_as ));
@@ -245,6 +244,7 @@ static RPCHelpMan getpeerinfo()
245
244
heights.push_back (height);
246
245
}
247
246
obj.pushKV (" inflight" , heights);
247
+ obj.pushKV (" addr_relay_enabled" , statestats.m_addr_relay_enabled );
248
248
obj.pushKV (" addr_processed" , statestats.m_addr_processed );
249
249
obj.pushKV (" addr_rate_limited" , statestats.m_addr_rate_limited );
250
250
}
0 commit comments