Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <chain.h>
Public Member Functions | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
void | SetNull () |
CBlockFileInfo () | |
std::string | ToString () const |
void | AddBlock (unsigned int nHeightIn, uint64_t nTimeIn) |
update statistics (does not update nSize) More... | |
Public Attributes | |
unsigned int | nBlocks |
number of blocks stored in file More... | |
unsigned int | nSize |
number of used bytes of block file More... | |
unsigned int | nUndoSize |
number of used bytes in the undo file More... | |
unsigned int | nHeightFirst |
lowest height of block in file More... | |
unsigned int | nHeightLast |
highest height of block in file More... | |
uint64_t | nTimeFirst |
earliest time of block in file More... | |
uint64_t | nTimeLast |
latest time of block in file More... | |
ADD_SERIALIZE_METHODS | |
Detailed Description
Constructor & Destructor Documentation
◆ CBlockFileInfo()
|
inline |
Member Function Documentation
◆ AddBlock()
|
inline |
update statistics (does not update nSize)
Definition at line 72 of file chain.h.
References nBlocks, nHeightFirst, nHeightLast, nTimeFirst, and nTimeLast.
◆ SerializationOp()
|
inline |
Definition at line 45 of file chain.h.
References nBlocks, nHeightFirst, nHeightLast, nSize, nTimeFirst, nTimeLast, nUndoSize, READWRITE, and VARINT.
◆ SetNull()
|
inline |
Definition at line 55 of file chain.h.
References nBlocks, nHeightFirst, nHeightLast, nSize, nTimeFirst, nTimeLast, and nUndoSize.
Referenced by CBlockFileInfo().
◆ ToString()
std::string CBlockFileInfo::ToString | ( | ) | const |
Definition at line 4878 of file validation.cpp.
References DateTimeStrFormat(), nBlocks, nHeightFirst, nHeightLast, nSize, nTimeFirst, nTimeLast, and strprintf.
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
◆ nBlocks
unsigned int CBlockFileInfo::nBlocks |
number of blocks stored in file
Definition at line 34 of file chain.h.
Referenced by AddBlock(), SerializationOp(), SetNull(), and ToString().
◆ nHeightFirst
unsigned int CBlockFileInfo::nHeightFirst |
lowest height of block in file
Definition at line 37 of file chain.h.
Referenced by AddBlock(), SerializationOp(), SetNull(), and ToString().
◆ nHeightLast
unsigned int CBlockFileInfo::nHeightLast |
highest height of block in file
Definition at line 38 of file chain.h.
Referenced by AddBlock(), SerializationOp(), SetNull(), and ToString().
◆ nSize
unsigned int CBlockFileInfo::nSize |
number of used bytes of block file
Definition at line 35 of file chain.h.
Referenced by SerializationOp(), SetNull(), and ToString().
◆ nTimeFirst
uint64_t CBlockFileInfo::nTimeFirst |
earliest time of block in file
Definition at line 39 of file chain.h.
Referenced by AddBlock(), SerializationOp(), SetNull(), and ToString().
◆ nTimeLast
uint64_t CBlockFileInfo::nTimeLast |
latest time of block in file
Definition at line 40 of file chain.h.
Referenced by AddBlock(), SerializationOp(), SetNull(), and ToString().
◆ nUndoSize
unsigned int CBlockFileInfo::nUndoSize |
number of used bytes in the undo file
Definition at line 36 of file chain.h.
Referenced by SerializationOp(), and SetNull().
The documentation for this class was generated from the following files:
- src/chain.h
- src/validation.cpp