Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <wallet/walletdb.h>
#include <base58.h>
#include <consensus/tx_verify.h>
#include <consensus/validation.h>
#include <fs.h>
#include <protocol.h>
#include <serialize.h>
#include <sync.h>
#include <util.h>
#include <utiltime.h>
#include <wallet/wallet.h>
#include <validation.h>
#include <atomic>
#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, std::string &strType, std::string &strErr) |
void | MaybeCompactWalletDB () |
Compacts BDB state so that wallet.dat is self-contained (if there are changes) More... | |
Function Documentation
◆ MaybeCompactWalletDB()
void MaybeCompactWalletDB | ( | ) |
Compacts BDB state so that wallet.dat is self-contained (if there are changes)
Definition at line 789 of file walletdb.cpp.
References DEFAULT_FLUSHWALLET, gArgs, ArgsManager::GetBoolArg(), GetTime(), GetWallets(), BerkeleyDatabase::nLastFlushed, BerkeleyDatabase::nLastSeen, BerkeleyDatabase::nLastWalletUpdate, BerkeleyDatabase::nUpdateCounter, and BerkeleyBatch::PeriodicFlush().
Referenced by WalletInit::Start().
◆ ReadKeyValue()
bool ReadKeyValue | ( | CWallet * | pwallet, |
CDataStream & | ssKey, | ||
CDataStream & | ssValue, | ||
CWalletScanState & | wss, | ||
std::string & | strType, | ||
std::string & | strErr | ||
) |
Definition at line 257 of file walletdb.cpp.
References CheckTransaction(), DecodeDestination(), CDataStream::empty(), CWalletScanState::fAnyUnordered, CWalletScanState::fIsEncrypted, Hash(), base_blob< BITS >::IsNull(), CValidationState::IsValid(), CKey::Load(), CWallet::LoadCryptedKey(), CWallet::LoadCScript(), CWallet::LoadDestData(), CWallet::LoadHDPubKey(), CWallet::LoadKey(), CWallet::LoadKeyMetadata(), CWallet::LoadKeyPool(), CWallet::LoadScriptMetadata(), CWallet::LoadToWallet(), CWallet::LoadWatchOnly(), CWallet::mapAddressBook, CWallet::mapMasterKeys, CWallet::nAccountingEntryNumber, CWalletScanState::nCKeys, CWalletScanState::nFileVersion, CWalletScanState::nHDPubKeys, CWalletScanState::nKeyMeta, CWalletScanState::nKeys, CWallet::nMasterKeyMaxID, CWallet::nOrderPosNext, CWalletScanState::nWatchKeys, CWallet::SetCryptedHDChainSingle(), CWallet::SetHDChainSingle(), strprintf, CWalletKey::vchPrivKey, and CWalletScanState::vWalletUpgrade.
Referenced by WalletBatch::LoadWallet(), and WalletBatch::RecoverKeysOnlyFilter().