![]() |
Bitcoin Core 32.99.0
P2P Digital Currency
|
Access to the block database (blocks/index/) More...
#include <blockstorage.h>
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 ¶ms) | |
| CDBWrapper (const CDBWrapper &)=delete | |
Public Member Functions inherited from CDBWrapper | |
| CDBWrapper (const DBParams ¶ms) | |
| ~CDBWrapper () | |
| CDBWrapper (const CDBWrapper &)=delete | |
| CDBWrapper & | operator= (const CDBWrapper &)=delete |
| template<typename K , typename V > | |
| ReadStatus | TryRead (const K &key, V &value) const |
| Read and deserialize a value from the database, with explicit error discrimination. | |
| template<typename K , typename V > | |
| bool | Read (const K &key, V &value) const |
| Wrapper around TryRead() that preserves the original Read() semantics: returns true on success, false if the key is absent or deserialization fails, and throws dbwrapper_error on an internal DB error. | |
| 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) |
| void | CompactFull () |
| Perform a blocking full compaction of the underlying LevelDB. | |
| std::optional< std::string > | GetProperty (const std::string &property) const |
| Return a LevelDB property value, if available. | |
| size_t | DynamicMemoryUsage () const |
| CDBIterator * | NewIterator () |
| 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 |
Additional Inherited Members | |
Public Types inherited from CDBWrapper | |
| using | ReadStatus = util::Expected< bool, ReadFailure > |
Static Public Member Functions inherited from CDBWrapper | |
| static bool | HasKeyStartingWith (const fs::path &path, uint8_t prefix) |
| Probe an unopened database for a key prefix. | |
Access to the block database (blocks/index/)
Definition at line 99 of file blockstorage.h.
|
delete |
| CDBWrapper::CDBWrapper | ( | const DBParams & | params | ) |
Definition at line 215 of file dbwrapper.cpp.
| bool kernel::BlockTreeDB::ReadBlockFileInfo | ( | int | nFile, |
| CBlockFileInfo & | info | ||
| ) |
Definition at line 68 of file blockstorage.cpp.
Definition at line 87 of file blockstorage.cpp.
| void kernel::BlockTreeDB::WriteBatchSync | ( | const std::vector< std::pair< int, const CBlockFileInfo * > > & | fileInfo, |
| int | nLastFile, | ||
| const std::vector< const CBlockIndex * > & | blockinfo | ||
| ) |