@@ -200,6 +200,9 @@ static RPCHelpMan getpeerinfo()
200
200
ServiceFlags services{fStateStats ? statestats.their_services : ServiceFlags::NODE_NONE};
201
201
obj.pushKV (" services" , strprintf (" %016x" , services));
202
202
obj.pushKV (" servicesnames" , GetServicesNames (services));
203
+ if (fStateStats ) {
204
+ obj.pushKV (" relaytxes" , statestats.m_relay_txs );
205
+ }
203
206
obj.pushKV (" lastsend" , count_seconds (stats.m_last_send ));
204
207
obj.pushKV (" lastrecv" , count_seconds (stats.m_last_recv ));
205
208
obj.pushKV (" last_transaction" , count_seconds (stats.m_last_tx_time ));
@@ -235,8 +238,6 @@ static RPCHelpMan getpeerinfo()
235
238
heights.push_back (height);
236
239
}
237
240
obj.pushKV (" inflight" , heights);
238
- obj.pushKV (" relaytxes" , statestats.m_relay_txs );
239
- obj.pushKV (" minfeefilter" , ValueFromAmount (statestats.m_fee_filter_received ));
240
241
obj.pushKV (" addr_relay_enabled" , statestats.m_addr_relay_enabled );
241
242
obj.pushKV (" addr_processed" , statestats.m_addr_processed );
242
243
obj.pushKV (" addr_rate_limited" , statestats.m_addr_rate_limited );
@@ -246,6 +247,9 @@ static RPCHelpMan getpeerinfo()
246
247
permissions.push_back (permission);
247
248
}
248
249
obj.pushKV (" permissions" , permissions);
250
+ if (fStateStats ) {
251
+ obj.pushKV (" minfeefilter" , ValueFromAmount (statestats.m_fee_filter_received ));
252
+ }
249
253
250
254
UniValue sendPerMsgType (UniValue::VOBJ);
251
255
for (const auto & i : stats.mapSendBytesPerMsgType ) {
0 commit comments