|
| CBlockTreeDB (size_t nCacheSize, bool fMemory=false, bool fWipe=false, size_t maxFileSize=2<< 20) |
|
| CBlockTreeDB (const CBlockTreeDB &)=delete |
|
CBlockTreeDB & | operator= (const CBlockTreeDB &)=delete |
|
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) |
|
bool | ReadReindexing (bool &fReindexing) |
|
bool | ReadTxIndex (const uint256 &txid, CDiskTxPos &pos) |
|
bool | WriteTxIndex (const std::vector< std::pair< uint256, CDiskTxPos > > &vect) |
|
bool | ReadSpentIndex (CSpentIndexKey &key, CSpentIndexValue &value) |
|
bool | UpdateSpentIndex (const std::vector< std::pair< CSpentIndexKey, CSpentIndexValue > > &vect) |
|
bool | UpdateAddressUnspentIndex (const std::vector< std::pair< CAddressUnspentKey, CAddressUnspentValue > > &vect) |
|
bool | ReadAddressUnspentIndex (uint160 addressHash, int type, std::string assetName, std::vector< std::pair< CAddressUnspentKey, CAddressUnspentValue > > &vect) |
|
bool | ReadAddressUnspentIndex (uint160 addressHash, int type, std::vector< std::pair< CAddressUnspentKey, CAddressUnspentValue > > &vect) |
|
bool | WriteAddressIndex (const std::vector< std::pair< CAddressIndexKey, CAmount > > &vect) |
|
bool | EraseAddressIndex (const std::vector< std::pair< CAddressIndexKey, CAmount > > &vect) |
|
bool | ReadAddressIndex (uint160 addressHash, int type, std::string assetName, std::vector< std::pair< CAddressIndexKey, CAmount > > &addressIndex, int start=0, int end=0) |
|
bool | ReadAddressIndex (uint160 addressHash, int type, std::vector< std::pair< CAddressIndexKey, CAmount > > &addressIndex, int start=0, int end=0) |
|
bool | WriteTimestampIndex (const CTimestampIndexKey ×tampIndex) |
|
bool | ReadTimestampIndex (const unsigned int &high, const unsigned int &low, const bool fActiveOnly, std::vector< std::pair< uint256, unsigned int > > &vect) |
|
bool | WriteTimestampBlockIndex (const CTimestampBlockIndexKey &blockhashIndex, const CTimestampBlockIndexValue &logicalts) |
|
bool | ReadTimestampBlockIndex (const uint256 &hash, unsigned int &logicalTS) |
|
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, size_t maxFileSize=2<< 20) |
|
| ~CDBWrapper () |
|
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) |
|
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 113 of file txdb.h.