Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CBlockFileInfo Class Reference

#include <blockfileinfo.h>

Public Member Functions

 SERIALIZE_METHODS (CBlockFileInfo, obj)
 
void SetNull ()
 
 CBlockFileInfo ()
 
std::string ToString () const
 
void AddBlock (unsigned int nHeightIn, uint64_t nTimeIn)
 update statistics (does not update nSize)
 

Public Attributes

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

Detailed Description

Definition at line 13 of file blockfileinfo.h.

Constructor & Destructor Documentation

◆ CBlockFileInfo()

CBlockFileInfo::CBlockFileInfo ( )
inline

Definition at line 50 of file blockfileinfo.h.

Here is the call graph for this function:

Member Function Documentation

◆ AddBlock()

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

update statistics (does not update nSize)

Definition at line 55 of file blockfileinfo.h.

Here is the call graph for this function:

◆ SERIALIZE_METHODS()

CBlockFileInfo::SERIALIZE_METHODS ( CBlockFileInfo  ,
obj   
)
inline

Definition at line 30 of file blockfileinfo.h.

Here is the call graph for this function:

◆ SetNull()

void CBlockFileInfo::SetNull ( )
inline

Definition at line 40 of file blockfileinfo.h.

Here is the caller graph for this function:

◆ ToString()

std::string CBlockFileInfo::ToString ( ) const

Definition at line 10 of file blockfileinfo.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ nBlocks

unsigned int CBlockFileInfo::nBlocks

number of blocks stored in file

Definition at line 16 of file blockfileinfo.h.

◆ nHeightFirst

unsigned int CBlockFileInfo::nHeightFirst

lowest height of block in file

Definition at line 22 of file blockfileinfo.h.

◆ nHeightLast

unsigned int CBlockFileInfo::nHeightLast

highest height of block in file

Definition at line 24 of file blockfileinfo.h.

◆ nSize

unsigned int CBlockFileInfo::nSize

number of used bytes of block file

Definition at line 18 of file blockfileinfo.h.

◆ nTimeFirst

uint64_t CBlockFileInfo::nTimeFirst

earliest time of block in file

Definition at line 26 of file blockfileinfo.h.

◆ nTimeLast

uint64_t CBlockFileInfo::nTimeLast

latest time of block in file

Definition at line 28 of file blockfileinfo.h.

◆ nUndoSize

unsigned int CBlockFileInfo::nUndoSize

number of used bytes in the undo file

Definition at line 20 of file blockfileinfo.h.


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