![]() |
Fabcoin Core
0.16.2
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 <chain.h>
Public Types | |
| enum | { nMedianTimeSpan =11 } |
Public Member Functions | |
| void | SetNull () |
| CBlockIndex () | |
| CBlockIndex (const CBlockHeader &block) | |
| CDiskBlockPos | GetBlockPos () const |
| CDiskBlockPos | GetUndoPos () const |
| CBlockHeader | GetBlockHeader () const |
| uint256 | GetBlockHash () const |
| int64_t | GetBlockTime () const |
| int64_t | GetBlockTimeMax () const |
| int64_t | GetMedianTimePast () const |
| bool | IsProofOfWork () const |
| bool | IsProofOfStake () const |
| bool | IsSupportContract () const |
| bool | IsLegacyFormat () const |
| std::string | ToString () const |
| bool | IsValid (enum BlockStatus nUpTo=BLOCK_VALID_TRANSACTIONS) const |
| Check whether this block index entry is valid up to the passed validity level. More... | |
| bool | RaiseValidity (enum BlockStatus nUpTo) |
| Raise the validity level of this block index entry. More... | |
| void | BuildSkip () |
| Build the skiplist pointer for this entry. More... | |
| CBlockIndex * | GetAncestor (int height) |
| Efficiently find an ancestor of this block. More... | |
| const CBlockIndex * | GetAncestor (int height) const |
Public Attributes | |
| const uint256 * | phashBlock |
| pointer to the hash of the block, if any. Memory is owned by this CBlockIndex More... | |
| CBlockIndex * | pprev |
| pointer to the index of the predecessor of this block More... | |
| CBlockIndex * | pnext |
| pointer to the index of the successor of this block More... | |
| CBlockIndex * | pskip |
| pointer to the index of some further predecessor of this block More... | |
| int | nHeight |
| height of the entry in the chain. The genesis block has height 0 More... | |
| int | nFile |
| Which # file this block is stored in (blk?????.dat) More... | |
| unsigned int | nDataPos |
| Byte offset within blk?????.dat where this block's data is stored. More... | |
| unsigned int | nUndoPos |
| Byte offset within rev?????.dat where this block's undo data is stored. More... | |
| arith_uint256 | nChainWork |
| (memory only) Total amount of work (expected number of hashes) in the chain up to and including this block More... | |
| unsigned int | nTx |
| Number of transactions in this block. More... | |
| unsigned int | nChainTx |
| (memory only) Number of transactions in the chain up to and including this block. More... | |
| unsigned int | nStatus |
| Verification status of this block. See enum BlockStatus. More... | |
| int | nVersion |
| block header More... | |
| uint256 | hashMerkleRoot |
| uint32_t | nReserved [7] |
| unsigned int | nTime |
| unsigned int | nBits |
| uint256 | nNonce |
| uint256 | hashStateRoot |
| uint256 | hashUTXORoot |
| uint256 | hashProof |
| std::vector< unsigned char > | nSolution |
| int32_t | nSequenceId |
| (memory only) Sequential id assigned to distinguish order in which blocks are received. More... | |
| unsigned int | nTimeMax |
| (memory only) Maximum nTime in the chain upto and including this block. More... | |
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 |
| void CBlockIndex::BuildSkip | ( | ) |
| CBlockIndex * CBlockIndex::GetAncestor | ( | int | height | ) |
| const CBlockIndex * CBlockIndex::GetAncestor | ( | int | height | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool CBlockIndex::IsLegacyFormat | ( | ) | const |
| bool CBlockIndex::IsSupportContract | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| unsigned int CBlockIndex::nChainTx |
| arith_uint256 CBlockIndex::nChainWork |
| unsigned int CBlockIndex::nDataPos |
| int CBlockIndex::nFile |
| int CBlockIndex::nHeight |
| int32_t CBlockIndex::nSequenceId |
| unsigned int CBlockIndex::nStatus |
| unsigned int CBlockIndex::nTimeMax |
| unsigned int CBlockIndex::nTx |
| unsigned int CBlockIndex::nUndoPos |
| const uint256* CBlockIndex::phashBlock |
pointer to the hash of the block, if any. Memory is owned by this CBlockIndex
| CBlockIndex* CBlockIndex::pnext |
| CBlockIndex* CBlockIndex::pprev |
| CBlockIndex* CBlockIndex::pskip |
1.8.11