raw
experimental-genesis    1 //  /****************************\
experimental-genesis 2 // * EXPERIMENTAL BRANCH. *
experimental-genesis 3 // * FOR LABORATORY USE ONLY. *
experimental-genesis 4 // ********************************
experimental-genesis 5 // ************
experimental-genesis 6 // **************
experimental-genesis 7 // ****************
experimental-genesis 8 // **** **** ****
experimental-genesis 9 // *** *** ***
experimental-genesis 10 // *** *** ***
experimental-genesis 11 // *** * * **
experimental-genesis 12 // ******** ********
experimental-genesis 13 // ******* ******
experimental-genesis 14 // *** **
experimental-genesis 15 // * ******* **
experimental-genesis 16 // ** * * * * *
experimental-genesis 17 // ** * * ***
experimental-genesis 18 // **** * * * * ****
experimental-genesis 19 // **** *** * * ** ***
experimental-genesis 20 // **** ********* ******
experimental-genesis 21 // ******* ***** *******
experimental-genesis 22 // ********* ****** **
experimental-genesis 23 // ** ****** ******
experimental-genesis 24 // ** ******* **
experimental-genesis 25 // ** ******* ***
experimental-genesis 26 // **** ******** ************
experimental-genesis 27 // ************ ************
experimental-genesis 28 // ******** *******
experimental-genesis 29 // ****** ****
experimental-genesis 30 // *** ***
experimental-genesis 31 // ********************************
experimental-genesis 32 // Copyright (c) 2011 The Bitcoin developers
experimental-genesis 33 // Distributed under the MIT/X11 software license, see the accompanying
experimental-genesis 34 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
experimental-genesis 35 #ifndef BITCOIN_CHECKPOINT_H
experimental-genesis 36 #define BITCOIN_CHECKPOINT_H
experimental-genesis 37
experimental-genesis 38 #include <map>
experimental-genesis 39 #include "util.h"
experimental-genesis 40
experimental-genesis 41 class uint256;
experimental-genesis 42 class CBlockIndex;
experimental-genesis 43
experimental-genesis 44 //
experimental-genesis 45 // Block-chain checkpoints are compiled-in sanity checks.
experimental-genesis 46 // They are updated every release or three.
experimental-genesis 47 //
experimental-genesis 48 namespace Checkpoints
experimental-genesis 49 {
experimental-genesis 50 // Returns true if block passes checkpoint checks
experimental-genesis 51 bool CheckBlock(int nHeight, const uint256& hash);
experimental-genesis 52
experimental-genesis 53 // Return conservative estimate of total number of blocks, 0 if unknown
experimental-genesis 54 int GetTotalBlocksEstimate();
experimental-genesis 55
experimental-genesis 56 // Returns last CBlockIndex* in mapBlockIndex that is a checkpoint
experimental-genesis 57 CBlockIndex* GetLastCheckpoint(const std::map<uint256, CBlockIndex*>& mapBlockIndex);
experimental-genesis 58 }
experimental-genesis 59
experimental-genesis 60 #endif