Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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)

Public Attributes

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

Constructor & Destructor Documentation

◆ CBlockFileInfo()

Member Function Documentation

◆ AddBlock()

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

update statistics (does not update nSize)

Definition at line 83 of file blockstorage.h.

◆ SERIALIZE_METHODS()

Definition at line 67 of file blockstorage.h.

◆ ToString()

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

Definition at line 166 of file blockstorage.cpp.

Member Data Documentation

◆ nBlocks

number of blocks stored in file

Definition at line 59 of file blockstorage.h.

◆ nHeightFirst

lowest height of block in file

Definition at line 62 of file blockstorage.h.

◆ nHeightLast

highest height of block in file

Definition at line 63 of file blockstorage.h.

◆ nSize

number of used bytes of block file

Definition at line 60 of file blockstorage.h.

◆ nTimeFirst

earliest time of block in file

Definition at line 64 of file blockstorage.h.

◆ nTimeLast

latest time of block in file

Definition at line 65 of file blockstorage.h.

◆ nUndoSize

number of used bytes in the undo file

Definition at line 61 of file blockstorage.h.


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