diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index 87f4ad7f2..ec1e2a47f 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -23,6 +23,14 @@ namespace Checkpoints { * fast multicore CPU, it won't be much higher than 1. */ static const double SIGCHECK_VERIFICATION_FACTOR = 5.0; + bool CheckBlock(const CCheckpointData& data, int nHeight, const uint256& hash) + { + const MapCheckpoints& checkpoints = data.mapCheckpoints; + + MapCheckpoints::const_iterator i = checkpoints.find(nHeight); + if (i == checkpoints.end()) return true; + return hash == i->second; + } //! Guess how far we are in the verification process at the given block index double GuessVerificationProgress(const CCheckpointData& data, CBlockIndex *pindex, bool fSigchecks) {