aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/txdb.cpp')
-rw-r--r--src/txdb.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp
index df9ff8d8c..bdc67a049 100644
--- a/src/txdb.cpp
+++ b/src/txdb.cpp
@@ -225,8 +225,10 @@ bool CBlockTreeDB::LoadBlockIndexGuts()
pindexNew->nStatus = diskindex.nStatus;
pindexNew->nTx = diskindex.nTx;
- if (!CheckProofOfWork(pindexNew->GetBlockHash(), pindexNew->nBits, Params().GetConsensus()))
- return error("LoadBlockIndex(): CheckProofOfWork failed: %s", pindexNew->ToString());
+ /* Bitcoin checks the PoW here. We don't do this because
+ the CDiskBlockIndex does not contain the auxpow.
+ This check isn't important, since the data on disk should
+ already be valid and can be trusted. */
pcursor->Next();
} else {