Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 47 explicit CEvoDB(
size_t nCacheSize,
bool fMemory =
false,
bool fWipe =
false);
52 return std::make_unique<CEvoDBScopedCommitter>(*this);
61 template <
typename K,
typename V>
62 bool Read(
const K& key, V& value)
68 template <
typename K,
typename V>
69 void Write(
const K& key,
const V& value)
111 extern std::unique_ptr<CEvoDB>
evoDb;
113 #endif //DASH_EVODB_H void CommitCurTransaction()
bool Exists(const K &key)
bool Exists(const K &key)
Batch of changes queued to be written to a CDBWrapper.
static const std::string EVODB_BEST_BLOCK
void Write(const K &key, const V &value)
bool Read(const K &key, V &value)
bool Read(const K &key, V &value)
CEvoDBScopedCommitter(CEvoDB &_evoDB)
void WriteBestBlock(const uint256 &hash)
bool VerifyBestBlock(const uint256 &hash)
CDBTransaction< CDBWrapper, CDBBatch > RootTransaction
CEvoDB(size_t nCacheSize, bool fMemory=false, bool fWipe=false)
size_t GetMemoryUsage() const
CurTransaction & GetCurTransaction()
CDBTransaction< RootTransaction, RootTransaction > CurTransaction
std::unique_ptr< CEvoDBScopedCommitter > BeginTransaction()
bool CommitRootTransaction()
void RollbackCurTransaction()
RootTransaction rootDBTransaction
void Write(const K &key, const V &v)
std::unique_ptr< CEvoDB > evoDb
AssertLockHeld(g_cs_orphans)
Wrapped mutex: supports recursive locking, but no waiting TODO: We should move away from using the re...
CurTransaction curDBTransaction