-
+ 9B0EDB861B8917AB28084619C825CEA9246156064C968E6D009D01C137C05393AE8276113ABF74DDA3BBC887CEFD63D257EF8DBB43EC25807CA3921306BF34BC
bitcoin/src/checkpoints.h
(0 . 0)(1 . 60)
3796 // /****************************\
3797 // * EXPERIMENTAL BRANCH. *
3798 // * FOR LABORATORY USE ONLY. *
3799 // ********************************
3800 // ************
3801 // **************
3802 // ****************
3803 // **** **** ****
3804 // *** *** ***
3805 // *** *** ***
3806 // *** * * **
3807 // ******** ********
3808 // ******* ******
3809 // *** **
3810 // * ******* **
3811 // ** * * * * *
3812 // ** * * ***
3813 // **** * * * * ****
3814 // **** *** * * ** ***
3815 // **** ********* ******
3816 // ******* ***** *******
3817 // ********* ****** **
3818 // ** ****** ******
3819 // ** ******* **
3820 // ** ******* ***
3821 // **** ******** ************
3822 // ************ ************
3823 // ******** *******
3824 // ****** ****
3825 // *** ***
3826 // ********************************
3827 // Copyright (c) 2011 The Bitcoin developers
3828 // Distributed under the MIT/X11 software license, see the accompanying
3829 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
3830 #ifndef BITCOIN_CHECKPOINT_H
3831 #define BITCOIN_CHECKPOINT_H
3832
3833 #include <map>
3834 #include "util.h"
3835
3836 class uint256;
3837 class CBlockIndex;
3838
3839 //
3840 // Block-chain checkpoints are compiled-in sanity checks.
3841 // They are updated every release or three.
3842 //
3843 namespace Checkpoints
3844 {
3845 // Returns true if block passes checkpoint checks
3846 bool CheckBlock(int nHeight, const uint256& hash);
3847
3848 // Return conservative estimate of total number of blocks, 0 if unknown
3849 int GetTotalBlocksEstimate();
3850
3851 // Returns last CBlockIndex* in mapBlockIndex that is a checkpoint
3852 CBlockIndex* GetLastCheckpoint(const std::map<uint256, CBlockIndex*>& mapBlockIndex);
3853 }
3854
3855 #endif