Dash Core  0.12.2.1
P2P Digital Currency
CBlockFileInfo Class Reference

#include <validation.h>

Public Member Functions

template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
void SetNull ()
 
 CBlockFileInfo ()
 
std::string ToString () const
 
void AddBlock (unsigned int nHeightIn, uint64_t nTimeIn)
 

Public Attributes

unsigned int nBlocks
 
unsigned int nSize
 number of blocks stored in file More...
 
unsigned int nUndoSize
 number of used bytes of block file More...
 
unsigned int nHeightFirst
 number of used bytes in the undo file More...
 
unsigned int nHeightLast
 lowest height of block in file More...
 
uint64_t nTimeFirst
 highest height of block in file More...
 
uint64_t nTimeLast
 earliest time of block in file More...
 
 ADD_SERIALIZE_METHODS
 latest time of block in file More...
 

Detailed Description

Definition at line 756 of file validation.h.

Constructor & Destructor Documentation

◆ CBlockFileInfo()

CBlockFileInfo::CBlockFileInfo ( )
inline

Definition at line 790 of file validation.h.

Member Function Documentation

◆ AddBlock()

void CBlockFileInfo::AddBlock ( unsigned int  nHeightIn,
uint64_t  nTimeIn 
)
inline

update statistics (does not update nSize)

Definition at line 797 of file validation.h.

◆ SerializationOp()

template<typename Stream , typename Operation >
void CBlockFileInfo::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 770 of file validation.h.

◆ SetNull()

void CBlockFileInfo::SetNull ( )
inline

Definition at line 780 of file validation.h.

Referenced by CBlockFileInfo().

◆ ToString()

std::string CBlockFileInfo::ToString ( ) const

Definition at line 4371 of file validation.cpp.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBlockFileInfo::ADD_SERIALIZE_METHODS

latest time of block in file

Definition at line 767 of file validation.h.

◆ nBlocks

unsigned int CBlockFileInfo::nBlocks

Definition at line 759 of file validation.h.

Referenced by AddBlock(), SerializationOp(), SetNull(), and ToString().

◆ nHeightFirst

unsigned int CBlockFileInfo::nHeightFirst

number of used bytes in the undo file

Definition at line 762 of file validation.h.

Referenced by AddBlock(), SerializationOp(), SetNull(), and ToString().

◆ nHeightLast

unsigned int CBlockFileInfo::nHeightLast

lowest height of block in file

Definition at line 763 of file validation.h.

Referenced by AddBlock(), SerializationOp(), SetNull(), and ToString().

◆ nSize

unsigned int CBlockFileInfo::nSize

number of blocks stored in file

Definition at line 760 of file validation.h.

Referenced by SerializationOp(), SetNull(), and ToString().

◆ nTimeFirst

uint64_t CBlockFileInfo::nTimeFirst

highest height of block in file

Definition at line 764 of file validation.h.

Referenced by AddBlock(), SerializationOp(), SetNull(), and ToString().

◆ nTimeLast

uint64_t CBlockFileInfo::nTimeLast

earliest time of block in file

Definition at line 765 of file validation.h.

Referenced by AddBlock(), SerializationOp(), SetNull(), and ToString().

◆ nUndoSize

unsigned int CBlockFileInfo::nUndoSize

number of used bytes of block file

Definition at line 761 of file validation.h.

Referenced by SerializationOp(), and SetNull().


The documentation for this class was generated from the following files: