15 MapCheckpoints::const_iterator i = checkpoints.find(
nHeight);
16 if (i == checkpoints.end()) {
19 return hash == i->second;
std::map< int, BlockHash > MapCheckpoints
Block-chain checkpoints are compiled-in sanity checks.
bool CheckBlock(const CCheckpointData &data, int nHeight, const BlockHash &hash)
Returns true if block passes checkpoint checks.
A BlockHash is a unqiue identifier for a block.
MapCheckpoints mapCheckpoints