Browse Source

Test

pull/4/head
jl777 7 years ago
parent
commit
b599dcc6f6
  1. 8
      src/checkpoints.cpp

8
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) {

Loading…
Cancel
Save