|
|
|
@ -133,7 +133,7 @@ UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool tx
@@ -133,7 +133,7 @@ UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool tx
|
|
|
|
|
result.push_back(Pair("tx", txs)); |
|
|
|
|
result.push_back(Pair("time", block.GetBlockTime())); |
|
|
|
|
result.push_back(Pair("mediantime", (int64_t)blockindex->GetMedianTimePast())); |
|
|
|
|
result.push_back(Pair("nonce", (uint64_t)block.nNonce)); |
|
|
|
|
result.push_back(Pair("nonce", (uint64_t)block.cnHeader.nonce)); |
|
|
|
|
result.push_back(Pair("bits", strprintf("%08x", block.nBits))); |
|
|
|
|
result.push_back(Pair("difficulty", GetDifficulty(blockindex))); |
|
|
|
|
result.push_back(Pair("chainwork", blockindex->nChainWork.GetHex())); |
|
|
|
|