diff options
author | jtimon <jtimon@monetize.io> | 2014-06-27 13:28:08 +0200 |
---|---|---|
committer | jtimon <jtimon@monetize.io> | 2014-06-28 13:19:14 +0200 |
commit | 645d497aa0010525441ce409e8e6d327a157ab39 (patch) | |
tree | 6db39432eca73273d62743c6e2cd3e978ccd0e58 /src/rpcmining.cpp | |
parent | ba81f4560736861866822ebda2a8fbc4525d8da4 (diff) |
Replace HexBits with strprintf
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 98caf704ee..db60ef3592 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -443,7 +443,7 @@ Value getblocktemplate(const Array& params, bool fHelp) 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("bits", HexBits(pblock->nBits))); + result.push_back(Pair("bits", strprintf("%08x", pblock->nBits))); result.push_back(Pair("height", (int64_t)(pindexPrev->nHeight+1))); return result; |