![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
The block chain is a tree shaped structure starting with the genesis block at the root, with each block potentially having multiple candidates to be the next block. More...
#include <main.h>
Public Types | |
enum | { nMedianTimeSpan =11 } |
Public Member Functions | |
CBlockIndex () | |
CBlockIndex (CBlockHeader &block) | |
CDiskBlockPos | GetBlockPos () const |
CDiskBlockPos | GetUndoPos () const |
CBlockHeader | GetBlockHeader () const |
uint256 | GetBlockHash () const |
int64_t | GetBlockTime () const |
CBigNum | GetBlockWork () const |
bool | CheckIndex () const |
int64_t | GetMedianTimePast () const |
int64_t | GetMedianTime () const |
std::string | ToString () const |
void | print () const |
Static Public Member Functions | |
static bool | IsSuperMajority (int minVersion, const CBlockIndex *pstart, unsigned int nRequired, unsigned int nToCheck) |
Returns true if there are nRequired or more blocks of minVersion or above in the last nToCheck blocks, starting at pstart and going backwards. More... | |
Public Attributes | |
const uint256 * | phashBlock |
CBlockIndex * | pprev |
int | nHeight |
int | nFile |
unsigned int | nDataPos |
unsigned int | nUndoPos |
uint256 | nChainWork |
unsigned int | nTx |
unsigned int | nChainTx |
unsigned int | nStatus |
int | nVersion |
uint256 | hashMerkleRoot |
unsigned int | nTime |
unsigned int | nBits |
unsigned int | nNonce |
uint32_t | nSequenceId |
The block chain is a tree shaped structure starting with the genesis block at the root, with each block potentially having multiple candidates to be the next block.
A blockindex may have multiple pprev pointing to it, but at most one of them can be part of the currently active branch.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
int64_t CBlockIndex::GetMedianTime | ( | ) | const |
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
CBlockIndex* CBlockIndex::pprev |