Master Core
v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
checkpoints.h
Go to the documentation of this file.
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
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
(
const
std::map<uint256, CBlockIndex*>&
mapBlockIndex
);
26
27
double
GuessVerificationProgress
(
CBlockIndex
*pindex,
bool
fSigchecks =
true
);
28
29
extern
bool
fEnabled
;
30
}
31
32
#endif
Checkpoints::GetLastCheckpoint
CBlockIndex * GetLastCheckpoint(const std::map< uint256, CBlockIndex * > &mapBlockIndex)
Definition:
checkpoints.cpp:149
Checkpoints
Block-chain checkpoints are compiled-in sanity checks.
Definition:
checkpoints.cpp:15
Checkpoints::GetTotalBlocksEstimate
int GetTotalBlocksEstimate()
Definition:
checkpoints.cpp:139
Checkpoints::CheckBlock
bool CheckBlock(int nHeight, const uint256 &hash)
Definition:
checkpoints.cpp:95
Checkpoints::GuessVerificationProgress
double GuessVerificationProgress(CBlockIndex *pindex, bool fSigchecks)
Definition:
checkpoints.cpp:108
uint256
256-bit unsigned integer
Definition:
uint256.h:531
CBlockIndex
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition:
main.h:688
Checkpoints::fEnabled
bool fEnabled
Definition:
checkpoints.cpp:33
mapBlockIndex
map< uint256, CBlockIndex * > mapBlockIndex
Definition:
main.cpp:47
Generated on Sun Jan 4 2015 09:04:45 for Master Core by
1.8.8