Skip to content

Commit f4fe866

Browse files
committed
verification.cpp update variables to be const
We don't want these to change. Fixes issue #800.
1 parent 963d77e commit f4fe866

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/validation.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -4938,9 +4938,9 @@ bool CVerifyDB::VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview,
49384938
if (!ReadBlockFromDisk(block, pindex, chainparams.GetConsensus()))
49394939
return error("VerifyDB(): *** ReadBlockFromDisk failed at %d, hash=%s", pindex->nHeight, pindex->GetBlockHash().ToString());
49404940
// check level 1: verify block validity
4941-
bool fCheckPoW = true;
4942-
bool fCheckMerkleRoot = true;
4943-
bool fDBCheck = true;
4941+
const bool fCheckPoW = true;
4942+
const bool fCheckMerkleRoot = true;
4943+
const bool fDBCheck = true;
49444944
if (nCheckLevel >= 1 && !CheckBlock(block, state, chainparams.GetConsensus(), fCheckPoW, fCheckMerkleRoot, fDBCheck)) // fCheckAssetDuplicate set to false, because we don't want to fail because the asset exists in our database, when loading blocks from our asset databse
49454945
return error("%s: *** found bad block at %d, hash=%s (%s)\n", __func__,
49464946
pindex->nHeight, pindex->GetBlockHash().ToString(), FormatStateMessage(state));

0 commit comments

Comments
 (0)