![]() |
Bitcoin ABC
0.22.13
P2P Digital Currency
|
#include <wallet/walletdb.h>
#include <chainparams.h>
#include <fs.h>
#include <key_io.h>
#include <protocol.h>
#include <serialize.h>
#include <sync.h>
#include <util/system.h>
#include <util/time.h>
#include <wallet/wallet.h>
#include <atomic>
Go to the source code of this file.
Classes | |
class | CWalletScanState |
Namespaces | |
DBKeys | |
Functions | |
static bool | ReadKeyValue (CWallet *pwallet, CDataStream &ssKey, CDataStream &ssValue, CWalletScanState &wss, std::string &strType, std::string &strErr) EXCLUSIVE_LOCKS_REQUIRED(pwallet -> cs_wallet) |
bool | ReadKeyValue (CWallet *pwallet, CDataStream &ssKey, CDataStream &ssValue, std::string &strType, std::string &strErr) |
Unserialize a given Key-Value pair and load it into the wallet. More... | |
void | MaybeCompactWalletDB () |
Compacts BDB state so that wallet.dat is self-contained (if there are changes) More... | |
bool | IsWalletLoaded (const fs::path &wallet_path) |
Return whether a wallet database is currently loaded. More... | |
Variables | |
const std::string | DBKeys::ACENTRY {"acentry"} |
const std::string | DBKeys::ACTIVEEXTERNALSPK {"activeexternalspk"} |
const std::string | DBKeys::ACTIVEINTERNALSPK {"activeinternalspk"} |
const std::string | DBKeys::BESTBLOCK_NOMERKLE {"bestblock_nomerkle"} |
const std::string | DBKeys::BESTBLOCK {"bestblock"} |
const std::string | DBKeys::CRYPTED_KEY {"ckey"} |
const std::string | DBKeys::CSCRIPT {"cscript"} |
const std::string | DBKeys::DEFAULTKEY {"defaultkey"} |
const std::string | DBKeys::DESTDATA {"destdata"} |
const std::string | DBKeys::FLAGS {"flags"} |
const std::string | DBKeys::HDCHAIN {"hdchain"} |
const std::string | DBKeys::KEYMETA {"keymeta"} |
const std::string | DBKeys::KEY {"key"} |
const std::string | DBKeys::MASTER_KEY {"mkey"} |
const std::string | DBKeys::MINVERSION {"minversion"} |
const std::string | DBKeys::NAME {"name"} |
const std::string | DBKeys::OLD_KEY {"wkey"} |
const std::string | DBKeys::ORDERPOSNEXT {"orderposnext"} |
const std::string | DBKeys::POOL {"pool"} |
const std::string | DBKeys::PURPOSE {"purpose"} |
const std::string | DBKeys::SETTINGS {"settings"} |
const std::string | DBKeys::TX {"tx"} |
const std::string | DBKeys::VERSION {"version"} |
const std::string | DBKeys::WALLETDESCRIPTOR {"walletdescriptor"} |
const std::string | DBKeys::WALLETDESCRIPTORCACHE {"walletdescriptorcache"} |
const std::string | DBKeys::WALLETDESCRIPTORCKEY {"walletdescriptorckey"} |
const std::string | DBKeys::WALLETDESCRIPTORKEY {"walletdescriptorkey"} |
const std::string | DBKeys::WATCHMETA {"watchmeta"} |
const std::string | DBKeys::WATCHS {"watchs"} |
bool IsWalletLoaded | ( | const fs::path & | wallet_path | ) |
Return whether a wallet database is currently loaded.
Definition at line 1008 of file walletdb.cpp.
void MaybeCompactWalletDB | ( | ) |
Compacts BDB state so that wallet.dat is self-contained (if there are changes)
Definition at line 938 of file walletdb.cpp.
|
static |
Definition at line 285 of file walletdb.cpp.
bool ReadKeyValue | ( | CWallet * | pwallet, |
CDataStream & | ssKey, | ||
CDataStream & | ssValue, | ||
std::string & | strType, | ||
std::string & | strErr | ||
) |
Unserialize a given Key-Value pair and load it into the wallet.
Definition at line 649 of file walletdb.cpp.