Changeset View
Changeset View
Standalone View
Standalone View
src/chain.h
Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | public: | ||||
//! Verification status of this block. See enum BlockStatus | //! Verification status of this block. See enum BlockStatus | ||||
unsigned int nStatus; | unsigned int nStatus; | ||||
//! block header | //! block header | ||||
int nVersion; | int nVersion; | ||||
uint256 hashMerkleRoot; | uint256 hashMerkleRoot; | ||||
unsigned int nTime; | unsigned int nTime; | ||||
unsigned int nBits; | uint32_t nBits; | ||||
unsigned int nNonce; | unsigned int nNonce; | ||||
//! (memory only) Sequential id assigned to distinguish order in which | //! (memory only) Sequential id assigned to distinguish order in which | ||||
//! blocks are received. | //! blocks are received. | ||||
int32_t nSequenceId; | int32_t nSequenceId; | ||||
//! (memory only) Maximum nTime in the chain upto and including this block. | //! (memory only) Maximum nTime in the chain upto and including this block. | ||||
unsigned int nTimeMax; | unsigned int nTimeMax; | ||||
void SetNull() { | void SetNull() { | ||||
phashBlock = NULL; | phashBlock = nullptr; | ||||
pprev = NULL; | pprev = nullptr; | ||||
pskip = NULL; | pskip = nullptr; | ||||
nHeight = 0; | nHeight = 0; | ||||
nFile = 0; | nFile = 0; | ||||
nDataPos = 0; | nDataPos = 0; | ||||
nUndoPos = 0; | nUndoPos = 0; | ||||
nChainWork = arith_uint256(); | nChainWork = arith_uint256(); | ||||
nTx = 0; | nTx = 0; | ||||
nChainTx = 0; | nChainTx = 0; | ||||
nStatus = 0; | nStatus = 0; | ||||
▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines |