@@ -90,6 +90,7 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp)
90
90
" \" addr\" :\" host:port\" , (string) The ip address and port of the peer\n "
91
91
" \" addrlocal\" :\" ip:port\" , (string) local address\n "
92
92
" \" services\" :\" xxxxxxxxxxxxxxxx\" , (string) The services offered\n "
93
+ " \" relaytxes\" :true|false, (boolean) Whether peer has asked us to relay transactions to it\n "
93
94
" \" lastsend\" : ttt, (numeric) The time in seconds since epoch (Jan 1 1970 GMT) of the last send\n "
94
95
" \" lastrecv\" : ttt, (numeric) The time in seconds since epoch (Jan 1 1970 GMT) of the last receive\n "
95
96
" \" bytessent\" : n, (numeric) The total bytes sent\n "
@@ -134,6 +135,7 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp)
134
135
if (!(stats.addrLocal .empty ()))
135
136
obj.push_back (Pair (" addrlocal" , stats.addrLocal ));
136
137
obj.push_back (Pair (" services" , strprintf (" %016x" , stats.nServices )));
138
+ obj.push_back (Pair (" relaytxes" , stats.fRelayTxes ));
137
139
obj.push_back (Pair (" lastsend" , stats.nLastSend ));
138
140
obj.push_back (Pair (" lastrecv" , stats.nLastRecv ));
139
141
obj.push_back (Pair (" bytessent" , stats.nSendBytes ));
0 commit comments