Browse Source

Updated nMinimumChainWork.

Fixed nonce display value.
zmq
Just Wonder 5 years ago
parent
commit
a4ded20d5a
  1. 2
      src/chainparams.cpp
  2. 2
      src/rpc/blockchain.cpp

2
src/chainparams.cpp

@ -140,7 +140,7 @@ public: @@ -140,7 +140,7 @@ public:
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1517356801; // January 31st, 2018
// The best chain should have at least this much work.
consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000000000000000000FF000");
consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000000000000044cb53ac55");
// By default assume that the signatures in ancestors of this block are valid.
consensus.defaultAssumeValid = uint256S("0x00");

2
src/rpc/blockchain.cpp

@ -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()));

Loading…
Cancel
Save