Bitcoin Core  31.0.0
P2P Digital Currency
Classes | Namespaces | Enumerations | Functions
walletdb.h File Reference
#include <key.h>
#include <primitives/transaction_identifier.h>
#include <script/sign.h>
#include <wallet/db.h>
#include <wallet/walletutil.h>
#include <cstdint>
#include <string>
#include <vector>
Include dependency graph for walletdb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  wallet::CHDChain
 
class  wallet::CKeyMetadata
 
struct  wallet::DbTxnListener
 
class  wallet::WalletBatch
 Access to the wallet database. More...
 

Namespaces

 wallet
 
 wallet::DBKeys
 

Enumerations

enum  wallet::DBErrors : int {
  wallet::DBErrors::LOAD_OK = 0, wallet::DBErrors::NEED_RESCAN = 1, wallet::DBErrors::NEED_REWRITE = 2, wallet::DBErrors::EXTERNAL_SIGNER_SUPPORT_REQUIRED = 3,
  wallet::DBErrors::NONCRITICAL_ERROR = 4, wallet::DBErrors::TOO_NEW = 5, wallet::DBErrors::UNKNOWN_DESCRIPTOR = 6, wallet::DBErrors::LOAD_FAIL = 7,
  wallet::DBErrors::UNEXPECTED_LEGACY_ENTRY = 8, wallet::DBErrors::LEGACY_WALLET = 9, wallet::DBErrors::CORRUPT = 10
}
 Overview of wallet database classes: More...
 

Functions

void wallet::LogDBInfo ()
 
bool wallet::RunWithinTxn (WalletDatabase &database, std::string_view process_desc, const std::function< bool(WalletBatch &)> &func)
 Executes the provided function 'func' within a database transaction context. More...
 
bool wallet::LoadKey (CWallet *pwallet, DataStream &ssKey, DataStream &ssValue, std::string &strErr)
 
bool wallet::LoadCryptedKey (CWallet *pwallet, DataStream &ssKey, DataStream &ssValue, std::string &strErr)
 
bool wallet::LoadEncryptionKey (CWallet *pwallet, DataStream &ssKey, DataStream &ssValue, std::string &strErr)
 
bool wallet::LoadHDChain (CWallet *pwallet, DataStream &ssValue, std::string &strErr)
 
bool wallet::HasLegacyRecords (CWallet &wallet)
 Returns true if there are any DBKeys::LEGACY_TYPES record in the wallet db. More...
 
bool wallet::HasLegacyRecords (CWallet &wallet, DatabaseBatch &batch)