PIVX Core  5.6.99
P2P Digital Currency
Classes | Typedefs | Enumerations | Functions
walletdb.h File Reference
#include "amount.h"
#include "wallet/db.h"
#include "wallet/hdchain.h"
#include "key.h"
#include "keystore.h"
#include "script/keyorigin.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

bool AutoBackupWallet (CWallet &wallet, std::string &strBackupWarning, std::string &strBackupError)
 Called during init: Automatic backups. More...
 
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 47 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 50 of file walletdb.h.

Function Documentation

◆ AutoBackupWallet()

bool AutoBackupWallet ( CWallet wallet,
std::string &  strBackupWarning,
std::string &  strBackupError 
)

Called during init: Automatic backups.

Definition at line 880 of file walletdb.cpp.

Here is the call graph for this function:

◆ MaybeCompactWalletDB()

void MaybeCompactWalletDB ( )

Compacts BDB state so that wallet.dat is self-contained (if there are changes)

Definition at line 812 of file walletdb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: