]> Git Repo - VerusCoin.git/blob - src/checkpoints.h
Apply clang-format on some infrequently-updated files
[VerusCoin.git] / src / checkpoints.h
1 // Copyright (c) 2009-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5 #ifndef BITCOIN_CHECKPOINT_H
6 #define BITCOIN_CHECKPOINT_H
7
8 #include <map>
9
10 class CBlockIndex;
11 class uint256;
12
13 /** Block-chain checkpoints are compiled-in sanity checks.
14  * They are updated every release or three.
15  */
16 namespace Checkpoints
17 {
18 // Returns true if block passes checkpoint checks
19 bool CheckBlock(int nHeight, const uint256& hash);
20
21 // Return conservative estimate of total number of blocks, 0 if unknown
22 int GetTotalBlocksEstimate();
23
24 // Returns last CBlockIndex* in mapBlockIndex that is a checkpoint
25 CBlockIndex* GetLastCheckpoint();
26
27 double GuessVerificationProgress(CBlockIndex* pindex, bool fSigchecks = true);
28
29 extern bool fEnabled;
30
31 } //namespace Checkpoints
32
33 #endif // BITCOIN_CHECKPOINT_H
This page took 0.027235 seconds and 4 git commands to generate.