Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

walletdb.h File Reference
#include <amount.h>
#include <wallet/db.h>
#include <hdchain.h>
#include <key.h>
#include <list>
#include <stdint.h>
#include <string>
#include <utility>
#include <vector>
+ Include dependency graph for walletdb.h:
+ This graph shows which files directly or indirectly include this file:

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

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 ( )

Variable Documentation

◆ DEFAULT_FLUSHWALLET

const bool DEFAULT_FLUSHWALLET = true
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:

Definition at line 32 of file walletdb.h.

Referenced by WalletInit::GetHelpString(), and MaybeCompactWalletDB().

Released under the MIT license