|
|
@ -77,7 +77,8 @@ Value getinfo(const Array& params, bool fHelp) |
|
|
|
obj.push_back(Pair("blocks", (int)nBestHeight)); |
|
|
|
obj.push_back(Pair("blocks", (int)nBestHeight)); |
|
|
|
obj.push_back(Pair("timeoffset", (boost::int64_t)GetTimeOffset())); |
|
|
|
obj.push_back(Pair("timeoffset", (boost::int64_t)GetTimeOffset())); |
|
|
|
obj.push_back(Pair("connections", (int)vNodes.size())); |
|
|
|
obj.push_back(Pair("connections", (int)vNodes.size())); |
|
|
|
obj.push_back(Pair("addrman", (int)addrman.size())); |
|
|
|
obj.push_back(Pair("addrman_total", (int)addrman.size())); |
|
|
|
|
|
|
|
obj.push_back(Pair("addrman_get", (int)addrman.GetAddr().size())); |
|
|
|
obj.push_back(Pair("proxy", (proxy.first.IsValid() ? proxy.first.ToStringIPPort() : string()))); |
|
|
|
obj.push_back(Pair("proxy", (proxy.first.IsValid() ? proxy.first.ToStringIPPort() : string()))); |
|
|
|
obj.push_back(Pair("difficulty", (double)GetDifficulty())); |
|
|
|
obj.push_back(Pair("difficulty", (double)GetDifficulty())); |
|
|
|
obj.push_back(Pair("testnet", TestNet())); |
|
|
|
obj.push_back(Pair("testnet", TestNet())); |
|
|
|