![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
#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>
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 |
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().
|
static |
Definition at line 576 of file walletdb.cpp.
Referenced by CWalletDB::LoadWallet(), and CWalletDB::Recover().
bool ReadKeyValue | ( | CWallet * | pwallet, |
CDataStream & | ssKey, | ||
CDataStream & | ssValue, | ||
CWalletScanState & | wss, | ||
string & | strType, | ||
string & | strErr | ||
) |
Definition at line 328 of file walletdb.cpp.
References CWallet::AddToWallet(), CheckTransaction(), CDataStream::empty(), CWalletScanState::fAnyUnordered, CWalletScanState::fIsEncrypted, CBitcoinAddress::Get(), Hash(), CValidationState::IsValid(), CKey::Load(), CWallet::LoadCryptedKey(), CWallet::LoadCScript(), CWallet::LoadDestData(), CWallet::LoadKey(), CWallet::LoadKeyMetadata(), CWallet::mapAddressBook, CWallet::mapKeyMetadata, CWallet::mapMasterKeys, nAccountingEntryNumber, CWalletScanState::nCKeys, CWalletScanState::nFileVersion, CWalletScanState::nKeyMeta, CWalletScanState::nKeys, CWallet::nMasterKeyMaxID, CWallet::nOrderPosNext, CWallet::nTimeFirstKey, CWallet::setKeyPool, strprintf, CWallet::vchDefaultKey, CWalletKey::vchPrivKey, and CWalletScanState::vWalletUpgrade.
Referenced by CWalletDB::LoadWallet(), and CWalletDB::Recover().
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().
|
static |
Definition at line 21 of file walletdb.cpp.
Referenced by ReadKeyValue(), and CWalletDB::WriteAccountingEntry().