Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
node::BlockTreeDB Class Reference

Access to the block database (blocks/index/). More...

#include <blockstorage.h>

Inheritance diagram for node::BlockTreeDB:
[legend]
Collaboration diagram for node::BlockTreeDB:
[legend]

Public Member Functions

void WriteBatchSync (const std::vector< std::pair< int, const CBlockFileInfo * > > &fileInfo, int nLastFile, const std::vector< const CBlockIndex * > &blockinfo)
bool ReadBlockFileInfo (int nFile, CBlockFileInfo &info)
bool ReadLastBlockFile (int &nFile)
void WriteReindexing (bool fReindexing)
void ReadReindexing (bool &fReindexing)
void WriteFlag (const std::string &name, bool fValue)
bool ReadFlag (const std::string &name, bool &fValue)
 CDBWrapper (const DBParams &params)
 CDBWrapper (const CDBWrapper &)=delete
Public Member Functions inherited from CDBWrapper
 CDBWrapper (const DBParams &params)
 ~CDBWrapper ()
 CDBWrapper (const CDBWrapper &)=delete
CDBWrapperoperator= (const CDBWrapper &)=delete
template<typename K, typename V>
bool Read (const K &key, V &value) const
template<typename K, typename V>
void Write (const K &key, const V &value, bool fSync=false)
template<typename K>
bool Exists (const K &key) const
template<typename K>
void Erase (const K &key, bool fSync=false)
void WriteBatch (CDBBatch &batch, bool fSync=false)
size_t DynamicMemoryUsage () const
CDBIteratorNewIterator ()
bool IsEmpty ()
 Return true if the database managed by this class contains no entries.
template<typename K>
size_t EstimateSize (const K &key_begin, const K &key_end) const

Detailed Description

Access to the block database (blocks/index/).

Definition at line 98 of file blockstorage.h.

Member Function Documentation

◆ CDBWrapper() [1/2]

CDBWrapper::CDBWrapper ( const CDBWrapper & )
delete

◆ CDBWrapper() [2/2]

CDBWrapper::CDBWrapper ( const DBParams & params)

Definition at line 200 of file dbwrapper.cpp.

◆ ReadBlockFileInfo()

Definition at line 68 of file blockstorage.cpp.

◆ ReadFlag()

bool kernel::BlockTreeDB::ReadFlag ( const std::string & name,
bool & fValue )

Definition at line 110 of file blockstorage.cpp.

◆ ReadLastBlockFile()

Definition at line 87 of file blockstorage.cpp.

◆ ReadReindexing()

void kernel::BlockTreeDB::ReadReindexing ( bool & fReindexing)

Definition at line 82 of file blockstorage.cpp.

◆ WriteBatchSync()

void kernel::BlockTreeDB::WriteBatchSync ( const std::vector< std::pair< int, const CBlockFileInfo * > > & fileInfo,
int nLastFile,
const std::vector< const CBlockIndex * > & blockinfo )

Definition at line 92 of file blockstorage.cpp.

◆ WriteFlag()

void kernel::BlockTreeDB::WriteFlag ( const std::string & name,
bool fValue )

Definition at line 105 of file blockstorage.cpp.

◆ WriteReindexing()

void kernel::BlockTreeDB::WriteReindexing ( bool fReindexing)

Definition at line 73 of file blockstorage.cpp.


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