Fabcoin Core  0.16.2
P2P Digital Currency
checkpoints.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2017 The Bitcoin Core 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 FABCOIN_CHECKPOINTS_H
6 #define FABCOIN_CHECKPOINTS_H
7 
8 #include <uint256.h>
9 
10 #include <map>
11 
12 class CBlockIndex;
13 struct CCheckpointData;
14 
19 namespace Checkpoints
20 {
21 
24 
27 
29 bool CheckSync(int nHeight);
30 
31 } //namespace Checkpoints
32 
33 #endif // FABCOIN_CHECKPOINTS_H
bool CheckSync(int nHeight)
Check against automatically selected checkpoint.
Definition: checkpoints.cpp:44
Block-chain checkpoints are compiled-in sanity checks.
Definition: checkpoints.cpp:17
CBlockIndex * GetLastCheckpoint(const CCheckpointData &data)
Returns last CBlockIndex* in mapBlockIndex that is a checkpoint.
Definition: checkpoints.cpp:19
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:177
uint8_t const * data
Definition: sha3.h:19
const CBlockIndex * AutoSelectSyncCheckpoint()
Returns last CBlockIndex* from the auto selected checkpoint.
Definition: checkpoints.cpp:33