aboutsummaryrefslogtreecommitdiff
path: root/src/rpcblockchain.cpp
diff options
context:
space:
mode:
authorjtimon <[email protected]>2014-06-27 13:28:08 +0200
committerjtimon <[email protected]>2014-06-28 13:19:14 +0200
commit645d497aa0010525441ce409e8e6d327a157ab39 (patch)
tree6db39432eca73273d62743c6e2cd3e978ccd0e58 /src/rpcblockchain.cpp
parentMerge pull request #3990 (diff)
downloaddiscoin-645d497aa0010525441ce409e8e6d327a157ab39.tar.xz
discoin-645d497aa0010525441ce409e8e6d327a157ab39.zip
Replace HexBits with strprintf
Diffstat (limited to 'src/rpcblockchain.cpp')
-rw-r--r--src/rpcblockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp
index 580c6bd5b..a67f266a1 100644
--- a/src/rpcblockchain.cpp
+++ b/src/rpcblockchain.cpp
@@ -66,7 +66,7 @@ Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex)
result.push_back(Pair("tx", txs));
result.push_back(Pair("time", block.GetBlockTime()));
result.push_back(Pair("nonce", (uint64_t)block.nNonce));
- result.push_back(Pair("bits", HexBits(block.nBits)));
+ result.push_back(Pair("bits", strprintf("%08x", block.nBits)));
result.push_back(Pair("difficulty", GetDifficulty(blockindex)));
result.push_back(Pair("chainwork", blockindex->nChainWork.GetHex()));