Access to the block database (blocks/index/)
More...
#include <txdb.h>
|
| CBlockTreeDB (size_t nCacheSize, bool fMemory=false, bool fWipe=false) |
|
bool | 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) |
|
bool | WriteReindexing (bool fReindexing) |
|
void | ReadReindexing (bool &fReindexing) |
|
bool | WriteFlag (const std::string &name, bool fValue) |
|
bool | ReadFlag (const std::string &name, bool &fValue) |
|
bool | LoadBlockIndexGuts (const Consensus::Params &consensusParams, std::function< CBlockIndex *(const uint256 &)> insertBlockIndex) |
|
| CDBWrapper (const fs::path &path, size_t nCacheSize, bool fMemory=false, bool fWipe=false, bool obfuscate=false) |
|
| ~CDBWrapper () |
|
| CDBWrapper (const CDBWrapper &)=delete |
|
CDBWrapper & | operator= (const CDBWrapper &)=delete |
|
template<typename K , typename V > |
bool | Read (const K &key, V &value) const |
|
template<typename K , typename V > |
bool | Write (const K &key, const V &value, bool fSync=false) |
|
template<typename K > |
bool | Exists (const K &key) const |
|
template<typename K > |
bool | Erase (const K &key, bool fSync=false) |
|
bool | WriteBatch (CDBBatch &batch, bool fSync=false) |
|
size_t | DynamicMemoryUsage () const |
|
bool | Flush () |
|
bool | Sync () |
|
CDBIterator * | NewIterator () |
|
bool | IsEmpty () |
| Return true if the database managed by this class contains no entries. More...
|
|
template<typename K > |
size_t | EstimateSize (const K &key_begin, const K &key_end) const |
|
template<typename K > |
void | CompactRange (const K &key_begin, const K &key_end) const |
| Compact a certain range of keys in the database. More...
|
|
Access to the block database (blocks/index/)
Definition at line 86 of file txdb.h.
◆ CBlockTreeDB()
CBlockTreeDB::CBlockTreeDB |
( |
size_t |
nCacheSize, |
|
|
bool |
fMemory = false , |
|
|
bool |
fWipe = false |
|
) |
| |
|
explicit |
◆ LoadBlockIndexGuts()
◆ ReadBlockFileInfo()
bool CBlockTreeDB::ReadBlockFileInfo |
( |
int |
nFile, |
|
|
CBlockFileInfo & |
info |
|
) |
| |
◆ ReadFlag()
bool CBlockTreeDB::ReadFlag |
( |
const std::string & |
name, |
|
|
bool & |
fValue |
|
) |
| |
◆ ReadLastBlockFile()
bool CBlockTreeDB::ReadLastBlockFile |
( |
int & |
nFile | ) |
|
◆ ReadReindexing()
void CBlockTreeDB::ReadReindexing |
( |
bool & |
fReindexing | ) |
|
◆ WriteBatchSync()
bool CBlockTreeDB::WriteBatchSync |
( |
const std::vector< std::pair< int, const CBlockFileInfo *> > & |
fileInfo, |
|
|
int |
nLastFile, |
|
|
const std::vector< const CBlockIndex *> & |
blockinfo |
|
) |
| |
◆ WriteFlag()
bool CBlockTreeDB::WriteFlag |
( |
const std::string & |
name, |
|
|
bool |
fValue |
|
) |
| |
◆ WriteReindexing()
bool CBlockTreeDB::WriteReindexing |
( |
bool |
fReindexing | ) |
|
The documentation for this class was generated from the following files: