|
|
@ -66,7 +66,7 @@ Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex) |
|
|
|
result.push_back(Pair("tx", txs)); |
|
|
|
result.push_back(Pair("tx", txs)); |
|
|
|
result.push_back(Pair("time", block.GetBlockTime())); |
|
|
|
result.push_back(Pair("time", block.GetBlockTime())); |
|
|
|
result.push_back(Pair("nonce", (uint64_t)block.nNonce)); |
|
|
|
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("difficulty", GetDifficulty(blockindex))); |
|
|
|
result.push_back(Pair("chainwork", blockindex->nChainWork.GetHex())); |
|
|
|
result.push_back(Pair("chainwork", blockindex->nChainWork.GetHex())); |
|
|
|
|
|
|
|
|
|
|
|