Skip to content

Commit

Permalink
Make src/rpc/mining.cpp use config.GetMaxBlockSize() instead of DEFAU…
Browse files Browse the repository at this point in the history
…LT_MAX_BLOCK_SIZE
  • Loading branch information
jtoomim committed Aug 26, 2020
1 parent 229c11d commit 42b1739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/mining.cpp
Expand Up @@ -815,8 +815,8 @@ static UniValue getblocktemplatecommon(bool fLight, const Config &config, const
result.pushKV("mintime", int64_t(pindexPrev->GetMedianTimePast()) + 1, false);
result.pushKV("mutable", std::move(aMutable), false);
result.pushKV("noncerange", "00000000ffffffff", false);
result.pushKV("sigoplimit", GetMaxBlockSigChecksCount(DEFAULT_MAX_BLOCK_SIZE), false);
result.pushKV("sizelimit", DEFAULT_MAX_BLOCK_SIZE, false);
result.pushKV("sigoplimit", GetMaxBlockSigChecksCount(config.GetMaxBlockSize()), false);
result.pushKV("sizelimit", config.GetMaxBlockSize(), false);
result.pushKV("curtime", pblock->GetBlockTime(), false);
result.pushKV("bits", strprintf("%08x", pblock->nBits), false);
result.pushKV("height", int64_t(pindexPrev->nHeight) + 1, false);
Expand Down

0 comments on commit 42b1739

Please sign in to comment.