BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Classes | Typedefs | Enumerations | Functions
walletdb.h File Reference
#include <amount.h>
#include <primitives/transaction.h>
#include <wallet/db.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  CHDChain
 
class  CKeyMetadata
 
class  WalletBatch
 Access to the wallet database. More...
 

Typedefs

using WalletDatabase = BerkeleyDatabase
 Backend-agnostic database type. More...
 

Enumerations

enum  DBErrors {
  DBErrors::LOAD_OK, DBErrors::CORRUPT, DBErrors::NONCRITICAL_ERROR, DBErrors::TOO_NEW,
  DBErrors::LOAD_FAIL, DBErrors::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...
 

Typedef Documentation

◆ WalletDatabase

Backend-agnostic database type.

Definition at line 44 of file walletdb.h.

Enumeration Type Documentation

◆ DBErrors

enum DBErrors
strong

Error statuses for the wallet database.

Enumerator
LOAD_OK 
CORRUPT 
NONCRITICAL_ERROR 
TOO_NEW 
LOAD_FAIL 
NEED_REWRITE 

Definition at line 47 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 653 of file walletdb.cpp.

Here is the call graph for this function: