aboutsummaryrefslogtreecommitdiff
path: root/src/rpcwallet.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-02-22 08:47:45 -0800
committerGavin Andresen <[email protected]>2013-02-22 08:47:45 -0800
commit802a3dfdccdda3cb187a1669b85011a962145780 (patch)
treeb1974f98bf309d150c17aba64adfc064288d7101 /src/rpcwallet.cpp
parentMerge pull request #1974 from kjj2/walletnotify (diff)
parentAdd timeoffset to getinfo RPC call (diff)
downloaddiscoin-802a3dfdccdda3cb187a1669b85011a962145780.tar.xz
discoin-802a3dfdccdda3cb187a1669b85011a962145780.zip
Merge pull request #2160 from petertodd/add-adjustedtime-to-rpc-getinfo
Add adjustedtime to getinfo RPC call
Diffstat (limited to 'src/rpcwallet.cpp')
-rw-r--r--src/rpcwallet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp
index 90a68f560..21eb2fd1a 100644
--- a/src/rpcwallet.cpp
+++ b/src/rpcwallet.cpp
@@ -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()));