PIVX Core  5.6.99
P2P Digital Currency
checkpoints.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 The Bitcoin developers
2 // Copyright (c) 2017-2021 The PIVX Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef PIVX_CHECKPOINTS_H
7 #define PIVX_CHECKPOINTS_H
8 
9 #include "uint256.h"
10 
11 #include <map>
12 
13 class CBlockIndex;
14 
19 namespace Checkpoints
20 {
21 
23 bool CheckBlock(int nHeight, const uint256& hash, bool fMatchesCheckpoint = false);
24 
27 
28 double GuessVerificationProgress(const CBlockIndex* pindex, bool fSigchecks = true);
29 
30 extern bool fEnabled;
31 
32 } //namespace Checkpoints
33 
34 #endif // PIVX_CHECKPOINTS_H
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: chain.h:139
256-bit opaque blob.
Definition: uint256.h:138
Block-chain checkpoints are compiled-in sanity checks.
Definition: checkpoints.cpp:17
bool CheckBlock(int nHeight, const uint256 &hash, bool fMatchesCheckpoint)
Returns true if block passes checkpoint checks.
Definition: checkpoints.cpp:29
int GetTotalBlocksEstimate()
Return conservative estimate of total number of blocks, 0 if unknown.
Definition: checkpoints.cpp:75
double GuessVerificationProgress(const CBlockIndex *pindex, bool fSigchecks)
Guess how far we are in the verification process at the given block index.
Definition: checkpoints.cpp:43