Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <amount.h>
#include <wallet/db.h>
#include <hdchain.h>
#include <key.h>
#include <list>
#include <stdint.h>
#include <string>
#include <utility>
#include <vector>
Go to the source code of this file.
Classes | |
class | CKeyMetadata |
class | WalletBatch |
Access to the wallet database. More... | |
Typedefs | |
using | WalletDatabase = BerkeleyDatabase |
Backend-agnostic database type. More... | |
Enumerations | |
enum | DBErrors { DB_LOAD_OK, DB_CORRUPT, DB_NONCRITICAL_ERROR, DB_TOO_NEW, DB_LOAD_FAIL, DB_NEED_REWRITE } |
Error statuses for the wallet database. More... | |
Functions | |
void | MaybeCompactWalletDB () |
Compacts BDB state so that wallet.dat is self-contained (if there are changes) More... | |
Variables | |
static const bool | DEFAULT_FLUSHWALLET = true |
Overview of wallet database classes: More... | |
Typedef Documentation
◆ WalletDatabase
using WalletDatabase = BerkeleyDatabase |
Backend-agnostic database type.
Definition at line 46 of file walletdb.h.
Enumeration Type Documentation
◆ DBErrors
enum DBErrors |
Error statuses for the wallet database.
Enumerator | |
---|---|
DB_LOAD_OK | |
DB_CORRUPT | |
DB_NONCRITICAL_ERROR | |
DB_TOO_NEW | |
DB_LOAD_FAIL | |
DB_NEED_REWRITE |
Definition at line 49 of file walletdb.h.
Function Documentation
◆ MaybeCompactWalletDB()
void MaybeCompactWalletDB | ( | ) |
Compacts BDB state so that wallet.dat is self-contained (if there are changes)
Definition at line 789 of file walletdb.cpp.
References DEFAULT_FLUSHWALLET, gArgs, ArgsManager::GetBoolArg(), GetTime(), GetWallets(), BerkeleyDatabase::nLastFlushed, BerkeleyDatabase::nLastSeen, BerkeleyDatabase::nLastWalletUpdate, BerkeleyDatabase::nUpdateCounter, and BerkeleyBatch::PeriodicFlush().
Referenced by WalletInit::Start().
Variable Documentation
◆ DEFAULT_FLUSHWALLET
|
static |
Overview of wallet database classes:
- WalletBatch is an abstract modifier object for the wallet database, and encapsulates a database batch update as well as methods to act on the database. It should be agnostic to the database implementation.
The following classes are implementation specific:
- BerkeleyEnvironment is an environment in which the database exists.
- BerkeleyDatabase represents a wallet database.
- BerkeleyBatch is a low-level database batch update.
Definition at line 32 of file walletdb.h.
Referenced by WalletInit::GetHelpString(), and MaybeCompactWalletDB().