diff options
author | jtimon <jtimon@monetize.io> | 2014-06-28 23:36:06 +0200 |
---|---|---|
committer | jtimon <jtimon@monetize.io> | 2014-07-07 10:20:28 +0200 |
commit | 209377a7cb5a9ea5d724faf94846ee5bacd289e7 (patch) | |
tree | 41a311498d0758dfb108bc5d03037e5b08bb654f /src/rpcmining.cpp | |
parent | 6654a87e7b2bd5d1d4a5c0af70d0468dfde300a9 (diff) |
Use GetBlockTime() more
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r-- | src/rpcmining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index db60ef3592..c7621dc137 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -442,7 +442,7 @@ Value getblocktemplate(const Array& params, bool fHelp) result.push_back(Pair("noncerange", "00000000ffffffff")); result.push_back(Pair("sigoplimit", (int64_t)MAX_BLOCK_SIGOPS)); result.push_back(Pair("sizelimit", (int64_t)MAX_BLOCK_SIZE)); - result.push_back(Pair("curtime", (int64_t)pblock->nTime)); + result.push_back(Pair("curtime", pblock->GetBlockTime())); result.push_back(Pair("bits", strprintf("%08x", pblock->nBits))); result.push_back(Pair("height", (int64_t)(pindexPrev->nHeight+1))); |