|
|
|
@ -75,6 +75,7 @@ Value getinfo(const Array& params, bool fHelp)
@@ -75,6 +75,7 @@ Value getinfo(const Array& params, bool fHelp)
|
|
|
|
|
obj.push_back(Pair("walletversion", pwalletMain->GetVersion())); |
|
|
|
|
obj.push_back(Pair("balance", ValueFromAmount(pwalletMain->GetBalance()))); |
|
|
|
|
obj.push_back(Pair("blocks", (int)nBestHeight)); |
|
|
|
|
obj.push_back(Pair("timeoffset", (boost::int64_t)GetTimeOffset())); |
|
|
|
|
obj.push_back(Pair("connections", (int)vNodes.size())); |
|
|
|
|
obj.push_back(Pair("proxy", (proxy.first.IsValid() ? proxy.first.ToStringIPPort() : string()))); |
|
|
|
|
obj.push_back(Pair("difficulty", (double)GetDifficulty())); |
|
|
|
|