PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Enumerations | Functions
walletdb.h File Reference
#include "amount.h"
#include "wallet/db.h"
#include "key.h"
#include "keystore.h"
#include <list>
#include <stdint.h>
#include <string>
#include <utility>
#include <vector>
#include "bignum.h"
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  CWalletDB
 Access to the wallet database (wallet.dat) 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 NotifyBacked (const CWallet &wallet, bool fSuccess, std::string strMessage)
 
bool BackupWallet (const CWallet &wallet, const fs::path &strDest, bool fEnableCustom=true)
 
bool AttemptBackupWallet (const CWallet &wallet, const fs::path &pathSrc, const fs::path &pathDest)
 
void ThreadFlushWalletDB (const std::string &strFile)
 

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 36 of file walletdb.h.

Function Documentation

◆ AttemptBackupWallet()

bool AttemptBackupWallet ( const CWallet wallet,
const fs::path &  pathSrc,
const fs::path &  pathDest 
)

Definition at line 1149 of file walletdb.cpp.

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

◆ BackupWallet()

bool BackupWallet ( const CWallet wallet,
const fs::path &  strDest,
bool  fEnableCustom = true 
)
Todo:
: add seconds to avoid naming conflicts

Definition at line 1045 of file walletdb.cpp.

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

◆ NotifyBacked()

void NotifyBacked ( const CWallet wallet,
bool  fSuccess,
std::string  strMessage 
)

Definition at line 1039 of file walletdb.cpp.

Here is the caller graph for this function:

◆ ThreadFlushWalletDB()

void ThreadFlushWalletDB ( const std::string &  strFile)

Definition at line 984 of file walletdb.cpp.

Here is the call graph for this function: