@@ -533,10 +533,11 @@ static RPCHelpMan getnetworkinfo()
533533 }},
534534 {RPCResult::Type::BOOL, " localrelay" , " true if transaction relay is requested from peers" },
535535 {RPCResult::Type::NUM, " timeoffset" , " the time offset" },
536+ {RPCResult::Type::BOOL, " networkactive" , " whether p2p networking is enabled" },
536537 {RPCResult::Type::NUM, " connections" , " the total number of connections" },
537538 {RPCResult::Type::NUM, " connections_in" , " the number of inbound connections" },
538539 {RPCResult::Type::NUM, " connections_out" , " the number of outbound connections" },
539- {RPCResult::Type::BOOL, " networkactive " , " whether p2p networking is enabled " },
540+ {RPCResult::Type::BOOL, " connections_onion_only " , " whether all connection are through the onion network " },
540541 {RPCResult::Type::ARR, " networks" , " information per network" ,
541542 {
542543 {RPCResult::Type::OBJ, " " , " " ,
@@ -587,6 +588,7 @@ static RPCHelpMan getnetworkinfo()
587588 obj.pushKV (" connections" , conn_counts.all );
588589 obj.pushKV (" connections_in" , conn_counts.in );
589590 obj.pushKV (" connections_out" , conn_counts.out );
591+ obj.pushKV (" connections_onion_only" , conn_counts.onion_only );
590592 }
591593 obj.pushKV (" networks" , GetNetworksInfo ());
592594 obj.pushKV (" relayfee" , ValueFromAmount (::minRelayTxFee.GetFeePerK ()));
0 commit comments