]> Git Repo - VerusCoin.git/blame - src/checkpoints.h
Get rid of C99 PRI?64 usage in source files
[VerusCoin.git] / src / checkpoints.h
CommitLineData
db0e8ccd 1// Copyright (c) 2009-2013 The Bitcoin developers
eb5fff9e 2// Distributed under the MIT/X11 software license, see the accompanying
3a25a2b9 3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
51ed9ec9 4
eb5fff9e 5#ifndef BITCOIN_CHECKPOINT_H
69e07747 6#define BITCOIN_CHECKPOINT_H
eb5fff9e 7
10fd7f66 8#include <map>
10fd7f66 9
10fd7f66 10class CBlockIndex;
51ed9ec9 11class uint256;
eb5fff9e 12
6b8de05d
PW
13/** Block-chain checkpoints are compiled-in sanity checks.
14 * They are updated every release or three.
15 */
eb5fff9e
GA
16namespace 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();
10fd7f66
GA
23
24 // Returns last CBlockIndex* in mapBlockIndex that is a checkpoint
25 CBlockIndex* GetLastCheckpoint(const std::map<uint256, CBlockIndex*>& mapBlockIndex);
9f2467ad
PW
26
27 double GuessVerificationProgress(CBlockIndex *pindex);
f0d8a52c
JG
28
29 extern bool fEnabled;
eb5fff9e
GA
30}
31
32#endif
This page took 0.094583 seconds and 4 git commands to generate.