PIVX Core  5.6.99
P2P Digital Currency
Functions | Variables
Checkpoints Namespace Reference

Block-chain checkpoints are compiled-in sanity checks. More...

Functions

bool CheckBlock (int nHeight, const uint256 &hash, bool fMatchesCheckpoint=false)
 Returns true if block passes checkpoint checks. More...
 
double GuessVerificationProgress (const CBlockIndex *pindex, bool fSigchecks)
 Guess how far we are in the verification process at the given block index. More...
 
int GetTotalBlocksEstimate ()
 Return conservative estimate of total number of blocks, 0 if unknown. More...
 

Variables

bool fEnabled = true
 

Detailed Description

Block-chain checkpoints are compiled-in sanity checks.

They are updated every release or three.

Function Documentation

◆ CheckBlock()

bool Checkpoints::CheckBlock ( int  nHeight,
const uint256 hash,
bool  fMatchesCheckpoint 
)

Returns true if block passes checkpoint checks.

Definition at line 29 of file checkpoints.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTotalBlocksEstimate()

int Checkpoints::GetTotalBlocksEstimate ( )

Return conservative estimate of total number of blocks, 0 if unknown.

Definition at line 75 of file checkpoints.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GuessVerificationProgress()

double Checkpoints::GuessVerificationProgress ( const CBlockIndex pindex,
bool  fSigchecks 
)

Guess how far we are in the verification process at the given block index.

Definition at line 43 of file checkpoints.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ fEnabled

bool Checkpoints::fEnabled = true

Definition at line 27 of file checkpoints.cpp.