@@ -118,7 +118,6 @@ 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" },
122
121
{RPCResult::Type::STR, " network" , " Network (" + Join (GetNetworkNames (/* append_unroutable */ true ), " , " ) + " )" },
123
122
{RPCResult::Type::NUM, " mapped_as" , " The AS in the BGP route to the peer used for diversifying\n "
124
123
" peer selection (only available if the asmap config flag is set)" },
@@ -151,6 +150,7 @@ static RPCHelpMan getpeerinfo()
151
150
{
152
151
{RPCResult::Type::NUM, " n" , " The heights of blocks we're currently asking from this peer" },
153
152
}},
153
+ {RPCResult::Type::BOOL, " addr_relay_enabled" , " Whether we participate in address relay with this peer" },
154
154
{RPCResult::Type::ARR, " permissions" , " Any special permissions that have been granted to this peer" ,
155
155
{
156
156
{RPCResult::Type::STR, " permission_type" , Join (NET_PERMISSIONS_DOC, " ,\n " ) + " .\n " },
@@ -202,7 +202,6 @@ static RPCHelpMan getpeerinfo()
202
202
if (!(stats.addrLocal .empty ())) {
203
203
obj.pushKV (" addrlocal" , stats.addrLocal );
204
204
}
205
- obj.pushKV (" addr_relay_enabled" , statestats.m_addr_relay_enabled );
206
205
obj.pushKV (" network" , GetNetworkName (stats.m_network ));
207
206
if (stats.m_mapped_as != 0 ) {
208
207
obj.pushKV (" mapped_as" , uint64_t (stats.m_mapped_as ));
@@ -244,6 +243,7 @@ static RPCHelpMan getpeerinfo()
244
243
heights.push_back (height);
245
244
}
246
245
obj.pushKV (" inflight" , heights);
246
+ obj.pushKV (" addr_relay_enabled" , statestats.m_addr_relay_enabled );
247
247
obj.pushKV (" addr_processed" , statestats.m_addr_processed );
248
248
obj.pushKV (" addr_rate_limited" , statestats.m_addr_rate_limited );
249
249
}
0 commit comments