Bitcoin ABC  0.24.7
P2P Digital Currency
checkpoints.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2016 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 BITCOIN_CHECKPOINTS_H
6 #define BITCOIN_CHECKPOINTS_H
7 
8 class CBlockIndex;
9 struct BlockHash;
10 struct CCheckpointData;
11 
16 namespace Checkpoints {
17 
19 bool CheckBlock(const CCheckpointData &data, int nHeight,
20  const BlockHash &hash);
21 
24 
25 } // namespace Checkpoints
26 
27 #endif // BITCOIN_CHECKPOINTS_H
nHeight
unsigned int nHeight
Definition: mempool_eviction.cpp:13
Checkpoints::GetLastCheckpoint
CBlockIndex * GetLastCheckpoint(const CCheckpointData &data) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
Returns last CBlockIndex* that is a checkpoint.
Definition: checkpoints.cpp:28
Checkpoints
Block-chain checkpoints are compiled-in sanity checks.
Definition: checkpoints.cpp:15
CCheckpointData
Definition: chainparams.h:24
BlockHash
A BlockHash is a unqiue identifier for a block.
Definition: blockhash.h:13
CBlockIndex
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: blockindex.h:23
Checkpoints::CheckBlock
bool CheckBlock(const CCheckpointData &data, int nHeight, const BlockHash &hash)
Returns true if block passes checkpoint checks.
Definition: checkpoints.cpp:17