Feathercoin
0.5.0
P2P Digital Currency
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
src
checkpoints.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2012 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
#ifndef BITCOIN_CHECKPOINT_H
5
#define BITCOIN_CHECKPOINT_H
6
7
#include <map>
8
9
class
uint256
;
10
class
CBlockIndex
;
11
15
namespace
Checkpoints
16
{
17
// Returns true if block passes checkpoint checks
18
bool
CheckBlock
(
int
nHeight,
const
uint256
&
hash
);
19
20
// Return conservative estimate of total number of blocks, 0 if unknown
21
int
GetTotalBlocksEstimate
();
22
23
// Returns last CBlockIndex* in mapBlockIndex that is a checkpoint
24
CBlockIndex
*
GetLastCheckpoint
(
const
std::map<uint256, CBlockIndex*>&
mapBlockIndex
);
25
26
// Returns the block hash of latest hardened checkpoint
27
uint256
GetLatestHardenedCheckpoint
();
28
29
double
GuessVerificationProgress
(
CBlockIndex
*pindex);
30
}
31
32
#endif
Checkpoints::GetLastCheckpoint
CBlockIndex * GetLastCheckpoint(const std::map< uint256, CBlockIndex * > &mapBlockIndex)
Definition:
checkpoints.cpp:116
Checkpoints
Block-chain checkpoints are compiled-in sanity checks.
Definition:
checkpoints.cpp:14
Checkpoints::GetTotalBlocksEstimate
int GetTotalBlocksEstimate()
Definition:
checkpoints.cpp:105
Checkpoints::CheckBlock
bool CheckBlock(int nHeight, const uint256 &hash)
Definition:
checkpoints.cpp:61
Checkpoints::GetLatestHardenedCheckpoint
uint256 GetLatestHardenedCheckpoint()
Definition:
checkpoints.cpp:134
uint256
256-bit unsigned integer
Definition:
uint256.h:537
CBlockIndex
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition:
main.h:1626
mapBlockIndex
map< uint256, CBlockIndex * > mapBlockIndex
Definition:
main.cpp:37
Checkpoints::GuessVerificationProgress
double GuessVerificationProgress(CBlockIndex *pindex)
Definition:
checkpoints.cpp:75
hash
uint32_t hash
Definition:
cache.cc:34
Generated on Thu Sep 11 2014 10:57:05 for Feathercoin by
1.8.8