Skip to content

Commit

Permalink
Merge pull request #1297 from personthingman2/development
Browse files Browse the repository at this point in the history
Fix integer overflow with displayed nonce
  • Loading branch information
denravonska committed Oct 24, 2018
2 parents e467919 + 29a3183 commit 4354452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpcblockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool fP
result.pushKV("mint", mint);
result.pushKV("MoneySupply", blockindex->nMoneySupply);
result.pushKV("time", block.GetBlockTime());
result.pushKV("nonce", (int)block.nNonce);
result.pushKV("nonce", (uint64_t)block.nNonce);
result.pushKV("bits", strprintf("%08x", block.nBits));
result.pushKV("difficulty", GetDifficulty(blockindex));
result.pushKV("blocktrust", leftTrim(blockindex->GetBlockTrust().GetHex(), '0'));
Expand Down

0 comments on commit 4354452

Please sign in to comment.