Dash Core  0.12.2.1
P2P Digital Currency
walletdb.cpp File Reference
#include "wallet/walletdb.h"
#include "base58.h"
#include "consensus/validation.h"
#include "validation.h"
#include "protocol.h"
#include "serialize.h"
#include "sync.h"
#include "util.h"
#include "utiltime.h"
#include "wallet/wallet.h"
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/thread.hpp>

Go to the source code of this file.

Classes

class  CWalletScanState
 

Functions

bool ReadKeyValue (CWallet *pwallet, CDataStream &ssKey, CDataStream &ssValue, CWalletScanState &wss, string &strType, string &strErr)
 
static bool IsKeyType (string strType)
 
void ThreadFlushWalletDB (const string &strFile)
 
bool BackupWallet (const CWallet &wallet, const string &strDest)
 
bool AutoBackupWallet (CWallet *wallet, std::string strWalletFile, std::string &strBackupWarning, std::string &strBackupError)
 

Variables

static uint64_t nAccountingEntryNumber = 0
 

Function Documentation

◆ AutoBackupWallet()

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

◆ BackupWallet()

bool BackupWallet ( const CWallet wallet,
const string &  strDest 
)

Definition at line 904 of file walletdb.cpp.

Referenced by AutoBackupWallet(), WalletModel::backupWallet(), and backupwallet().

◆ IsKeyType()

static bool IsKeyType ( string  strType)
static

Definition at line 641 of file walletdb.cpp.

Referenced by CWalletDB::LoadWallet(), and CWalletDB::Recover().

◆ ReadKeyValue()

bool ReadKeyValue ( CWallet pwallet,
CDataStream ssKey,
CDataStream ssValue,
CWalletScanState wss,
string &  strType,
string &  strErr 
)

Definition at line 350 of file walletdb.cpp.

Referenced by CWalletDB::LoadWallet(), and CWalletDB::Recover().

◆ ThreadFlushWalletDB()

void ThreadFlushWalletDB ( const string &  strFile)

Definition at line 842 of file walletdb.cpp.

Referenced by AppInit2().

Variable Documentation

◆ nAccountingEntryNumber

uint64_t nAccountingEntryNumber = 0
static

Definition at line 26 of file walletdb.cpp.

Referenced by ReadKeyValue(), and CWalletDB::WriteAccountingEntry_Backend().