|
|
|
@ -51,6 +51,8 @@ Value getpeerinfo(const Array& params, bool fHelp)
|
|
|
|
|
obj.push_back(Pair("services", strprintf("%08"PRI64x, stats.nServices)));
|
|
|
|
|
obj.push_back(Pair("lastsend", (boost::int64_t)stats.nLastSend));
|
|
|
|
|
obj.push_back(Pair("lastrecv", (boost::int64_t)stats.nLastRecv));
|
|
|
|
|
obj.push_back(Pair("bytessent", (boost::int64_t)stats.nSendBytes));
|
|
|
|
|
obj.push_back(Pair("bytesrecv", (boost::int64_t)stats.nRecvBytes));
|
|
|
|
|
obj.push_back(Pair("conntime", (boost::int64_t)stats.nTimeConnected));
|
|
|
|
|
obj.push_back(Pair("version", stats.nVersion));
|
|
|
|
|
obj.push_back(Pair("subver", stats.strSubVer));
|
|
|
|
@ -58,6 +60,8 @@ Value getpeerinfo(const Array& params, bool fHelp)
|
|
|
|
|
obj.push_back(Pair("releasetime", (boost::int64_t)stats.nReleaseTime));
|
|
|
|
|
obj.push_back(Pair("startingheight", stats.nStartingHeight));
|
|
|
|
|
obj.push_back(Pair("banscore", stats.nMisbehavior));
|
|
|
|
|
if (stats.fSyncNode)
|
|
|
|
|
obj.push_back(Pair("syncnode", true));
|
|
|
|
|
|
|
|
|
|
ret.push_back(obj);
|
|
|
|
|
}
|
|
|
|
|