@@ -460,6 +460,7 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
460
460
" \" subversion\" : \" /Satoshi:x.x.x/\" , (string) the server subversion string\n "
461
461
" \" protocolversion\" : xxxxx, (numeric) the protocol version\n "
462
462
" \" localservices\" : \" xxxxxxxxxxxxxxxx\" , (string) the services we offer to the network\n "
463
+ " \" localrelay\" : true|false, (bool) true if transaction relay is requested from peers\n "
463
464
" \" timeoffset\" : xxxxx, (numeric) the time offset\n "
464
465
" \" connections\" : xxxxx, (numeric) the number of connections\n "
465
466
" \" networks\" : [ (array) information per network\n "
@@ -494,6 +495,7 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
494
495
obj.push_back (Pair (" subversion" , strSubVersion));
495
496
obj.push_back (Pair (" protocolversion" ,PROTOCOL_VERSION));
496
497
obj.push_back (Pair (" localservices" , strprintf (" %016x" , nLocalServices)));
498
+ obj.push_back (Pair (" localrelay" , fRelayTxes ));
497
499
obj.push_back (Pair (" timeoffset" , GetTimeOffset ()));
498
500
obj.push_back (Pair (" connections" , (int )vNodes.size ()));
499
501
obj.push_back (Pair (" networks" , GetNetworksInfo ()));
0 commit comments