Add transaction and block header timestamps to gettxout RPC call result.
authoralex <alex@alex-VirtualBox.(none)>
Thu, 23 Jan 2014 17:14:59 +0000 (21:14 +0400)
committeralex <alex@alex-VirtualBox.(none)>
Thu, 23 Jan 2014 17:14:59 +0000 (21:14 +0400)
src/rpcblockchain.cpp
src/rpcwallet.cpp

index dcd2042..3420ed3 100644 (file)
@@ -370,6 +370,8 @@ Value gettxout(const Array& params, bool fHelp)
     ret.push_back(Pair("version", coins.nVersion));
     ret.push_back(Pair("coinbase", coins.fCoinBase));
     ret.push_back(Pair("coinstake", coins.fCoinStake));
+    ret.push_back(Pair("time", (boost::int64_t)coins.nTime));
+    ret.push_back(Pair("blocktime", (boost::int64_t)coins.nBlockTime));
 
     return ret;
 }
index e8341ce..78670bd 100644 (file)
@@ -1644,7 +1644,7 @@ Value validatepubkey(const Array& params, bool fHelp)
     return ret;
 }
 
-// ppcoin: reserve balance from being staked for network protection
+// reserve balance from being staked for network protection
 Value reservebalance(const Array& params, bool fHelp)
 {
     if (fHelp || params.size() > 2)
@@ -1686,7 +1686,7 @@ Value reservebalance(const Array& params, bool fHelp)
 }
 
 
-// ppcoin: check wallet integrity
+// check wallet integrity
 Value checkwallet(const Array& params, bool fHelp)
 {
     if (fHelp || params.size() > 0)
@@ -1709,7 +1709,7 @@ Value checkwallet(const Array& params, bool fHelp)
 }
 
 
-// ppcoin: repair wallet
+// repair wallet
 Value repairwallet(const Array& params, bool fHelp)
 {
     if (fHelp || params.size() > 0)
@@ -1731,7 +1731,7 @@ Value repairwallet(const Array& params, bool fHelp)
     return result;
 }
 
-// NovaCoin: resend unconfirmed wallet transactions
+// resend unconfirmed wallet transactions
 Value resendtx(const Array& params, bool fHelp)
 {
     if (fHelp || params.size() > 1)
@@ -1745,7 +1745,7 @@ Value resendtx(const Array& params, bool fHelp)
     return Value::null;
 }
 
-// ppcoin: make a public-private key pair
+// make a public-private key pair
 Value makekeypair(const Array& params, bool fHelp)
 {
     if (fHelp || params.size() > 1)
@@ -1757,7 +1757,7 @@ Value makekeypair(const Array& params, bool fHelp)
     string strPrefix = "";
     if (params.size() > 0)
         strPrefix = params[0].get_str();
+
     CKey key;
     key.MakeNewKey(false);