Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
walletdb.cpp File Reference
#include "walletdb.h"
#include "base58.h"
#include "protocol.h"
#include "serialize.h"
#include "sync.h"
#include "wallet.h"
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
+ Include dependency graph for walletdb.cpp:

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)
 

Variables

static uint64_t nAccountingEntryNumber = 0
 

Function Documentation

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

Definition at line 825 of file walletdb.cpp.

References bitdb, CDBEnv::CheckpointLSN(), CDBEnv::CloseDb(), CDBEnv::cs_db, CWallet::fFileBacked, GetDataDir(), LOCK, LogPrintf, CDBEnv::mapFileUseCount, MilliSleep(), and CWallet::strWalletFile.

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static bool IsKeyType ( string  strType)
static

Definition at line 576 of file walletdb.cpp.

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

+ Here is the caller graph for this function:

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

Definition at line 763 of file walletdb.cpp.

References bitdb, CDBEnv::CheckpointLSN(), CDBEnv::CloseDb(), CDBEnv::cs_db, GetBoolArg(), GetTime(), GetTimeMillis(), LogPrint(), CDBEnv::mapFileUseCount, MilliSleep(), nWalletDBUpdated, RenameThread(), and TRY_LOCK.

Referenced by AppInit2().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

uint64_t nAccountingEntryNumber = 0
static

Definition at line 21 of file walletdb.cpp.

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