PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Typedefs | Functions | Variables
Checkpoints Namespace Reference

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

Classes

struct  CCheckpointData
 

Typedefs

typedef std::map< int, uint256MapCheckpoints
 

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...
 
CBlockIndexGetLastCheckpoint ()
 Returns last CBlockIndex* in mapBlockIndex that is a checkpoint. More...
 

Variables

bool fEnabled = true
 

Detailed Description

Block-chain checkpoints are compiled-in sanity checks.

They are updated every release or three.

Typedef Documentation

◆ MapCheckpoints

typedef std::map<int, uint256> Checkpoints::MapCheckpoints

Definition at line 20 of file checkpoints.h.

Function Documentation

◆ CheckBlock()

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

Returns true if block passes checkpoint checks.

Definition at line 31 of file checkpoints.cpp.

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

◆ GetLastCheckpoint()

CBlockIndex * Checkpoints::GetLastCheckpoint ( )

Returns last CBlockIndex* in mapBlockIndex that is a checkpoint.

Definition at line 87 of file checkpoints.cpp.

Here is the call graph for this function:

◆ GetTotalBlocksEstimate()

int Checkpoints::GetTotalBlocksEstimate ( )

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

Definition at line 77 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 45 of file checkpoints.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ fEnabled

bool Checkpoints::fEnabled = true

Definition at line 29 of file checkpoints.cpp.