Bitcoin Core 30.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
kernel::CBlockFileInfo Class Reference

#include <blockstorage.h>

Public Member Functions

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

Public Attributes

uint32_t nBlocks {}
 number of blocks stored in file More...
 
uint32_t nSize {}
 number of used bytes of block file More...
 
uint32_t nUndoSize {}
 number of used bytes in the undo file More...
 
uint32_t nHeightFirst {}
 lowest height of block in file More...
 
uint32_t 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...
 

Detailed Description

Definition at line 50 of file blockstorage.h.

Constructor & Destructor Documentation

◆ CBlockFileInfo()

kernel::CBlockFileInfo::CBlockFileInfo ( )
default

Member Function Documentation

◆ AddBlock()

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

update statistics (does not update nSize)

Definition at line 77 of file blockstorage.h.

◆ SERIALIZE_METHODS()

kernel::CBlockFileInfo::SERIALIZE_METHODS ( CBlockFileInfo  ,
obj   
)
inline

Definition at line 61 of file blockstorage.h.

◆ ToString()

std::string kernel::CBlockFileInfo::ToString ( ) const

Definition at line 156 of file blockstorage.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ nBlocks

uint32_t kernel::CBlockFileInfo::nBlocks {}

number of blocks stored in file

Definition at line 53 of file blockstorage.h.

◆ nHeightFirst

uint32_t kernel::CBlockFileInfo::nHeightFirst {}

lowest height of block in file

Definition at line 56 of file blockstorage.h.

◆ nHeightLast

uint32_t kernel::CBlockFileInfo::nHeightLast {}

highest height of block in file

Definition at line 57 of file blockstorage.h.

◆ nSize

uint32_t kernel::CBlockFileInfo::nSize {}

number of used bytes of block file

Definition at line 54 of file blockstorage.h.

◆ nTimeFirst

uint64_t kernel::CBlockFileInfo::nTimeFirst {}

earliest time of block in file

Definition at line 58 of file blockstorage.h.

◆ nTimeLast

uint64_t kernel::CBlockFileInfo::nTimeLast {}

latest time of block in file

Definition at line 59 of file blockstorage.h.

◆ nUndoSize

uint32_t kernel::CBlockFileInfo::nUndoSize {}

number of used bytes in the undo file

Definition at line 55 of file blockstorage.h.


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