PRCYCoin  2.0.0.7rc1
P2P Digital Currency
checkpoints.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 The Bitcoin developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_CHECKPOINTS_H
6 #define BITCOIN_CHECKPOINTS_H
7 
8 #include "uint256.h"
9 
10 #include <map>
11 
12 class CBlockIndex;
13 
18 namespace Checkpoints
19 {
20 typedef std::map<int, uint256> MapCheckpoints;
21 
27 };
28 
30 bool CheckBlock(int nHeight, const uint256& hash, bool fMatchesCheckpoint = false);
31 
34 
37 
38 double GuessVerificationProgress(const CBlockIndex* pindex, bool fSigchecks = true);
39 
40 extern bool fEnabled;
41 
42 } //namespace Checkpoints
43 
44 #endif // BITCOIN_CHECKPOINTS_H
Checkpoints::CCheckpointData
Definition: checkpoints.h:22
Checkpoints::GetTotalBlocksEstimate
int GetTotalBlocksEstimate()
Return conservative estimate of total number of blocks, 0 if unknown.
Definition: checkpoints.cpp:77
Checkpoints::CCheckpointData::nTransactionsLastCheckpoint
int64_t nTransactionsLastCheckpoint
Definition: checkpoints.h:25
uint256.h
Checkpoints::GetLastCheckpoint
CBlockIndex * GetLastCheckpoint()
Returns last CBlockIndex* in mapBlockIndex that is a checkpoint.
Definition: checkpoints.cpp:87
Checkpoints::CCheckpointData::mapCheckpoints
const MapCheckpoints * mapCheckpoints
Definition: checkpoints.h:23
Checkpoints
Block-chain checkpoints are compiled-in sanity checks.
Definition: checkpoints.cpp:18
Checkpoints::fEnabled
bool fEnabled
Definition: checkpoints.cpp:29
Checkpoints::MapCheckpoints
std::map< int, uint256 > MapCheckpoints
Definition: checkpoints.h:20
uint256
256-bit unsigned big integer.
Definition: uint256.h:38
Checkpoints::CheckBlock
bool CheckBlock(int nHeight, const uint256 &hash, bool fMatchesCheckpoint)
Returns true if block passes checkpoint checks.
Definition: checkpoints.cpp:31
Checkpoints::GuessVerificationProgress
double GuessVerificationProgress(const CBlockIndex *pindex, bool fSigchecks)
Guess how far we are in the verification process at the given block index.
Definition: checkpoints.cpp:45
Checkpoints::CCheckpointData::fTransactionsPerDay
double fTransactionsPerDay
Definition: checkpoints.h:26
Checkpoints::CCheckpointData::nTimeLastCheckpoint
int64_t nTimeLastCheckpoint
Definition: checkpoints.h:24
CBlockIndex
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: chain.h:162