diff options
| author | Peter Todd <[email protected]> | 2015-11-20 18:51:44 -0500 |
|---|---|---|
| committer | Patick Strateman <[email protected]> | 2015-11-20 16:07:12 -0800 |
| commit | 08843ed99843078acb10eecda2045d5f0f1c2b4f (patch) | |
| tree | 43b6c4825707bd56cf426fdcecaa3630ce2e4874 /src/rpcnet.cpp | |
| parent | Bail early in processing transactions in blocks only mode. (diff) | |
| download | discoin-08843ed99843078acb10eecda2045d5f0f1c2b4f.tar.xz discoin-08843ed99843078acb10eecda2045d5f0f1c2b4f.zip | |
Add relaytxes status to getpeerinfo
Diffstat (limited to 'src/rpcnet.cpp')
| -rw-r--r-- | src/rpcnet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index 891501064..257884889 100644 --- a/src/rpcnet.cpp +++ b/src/rpcnet.cpp @@ -90,6 +90,7 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp) " \"addr\":\"host:port\", (string) The ip address and port of the peer\n" " \"addrlocal\":\"ip:port\", (string) local address\n" " \"services\":\"xxxxxxxxxxxxxxxx\", (string) The services offered\n" + " \"relaytxes\":true|false, (boolean) Whether peer has asked us to relay transactions to it\n" " \"lastsend\": ttt, (numeric) The time in seconds since epoch (Jan 1 1970 GMT) of the last send\n" " \"lastrecv\": ttt, (numeric) The time in seconds since epoch (Jan 1 1970 GMT) of the last receive\n" " \"bytessent\": n, (numeric) The total bytes sent\n" @@ -134,6 +135,7 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp) if (!(stats.addrLocal.empty())) obj.push_back(Pair("addrlocal", stats.addrLocal)); obj.push_back(Pair("services", strprintf("%016x", stats.nServices))); + obj.push_back(Pair("relaytxes", stats.fRelayTxes)); obj.push_back(Pair("lastsend", stats.nLastSend)); obj.push_back(Pair("lastrecv", stats.nLastRecv)); obj.push_back(Pair("bytessent", stats.nSendBytes)); |