]>
Commit | Line | Data |
---|---|---|
eb5fff9e GA |
1 | // Copyright (c) 2011 The Bitcoin developers |
2 | // Distributed under the MIT/X11 software license, see the accompanying | |
3 | // file license.txt or http://www.opensource.org/licenses/mit-license.php. | |
4 | #ifndef BITCOIN_CHECKPOINT_H | |
5 | #define BITCOIN_CHECKPOINT_H | |
6 | ||
7 | class uint256; | |
8 | ||
9 | // | |
10 | // Block-chain checkpoints are compiled-in sanity checks. | |
11 | // They are updated every release or three. | |
12 | // | |
13 | namespace Checkpoints | |
14 | { | |
15 | // Returns true if block passes checkpoint checks | |
16 | bool CheckBlock(int nHeight, const uint256& hash); | |
17 | ||
18 | // Return conservative estimate of total number of blocks, 0 if unknown | |
19 | int GetTotalBlocksEstimate(); | |
20 | } | |
21 | ||
22 | #endif |