Bitcoin Core  22.99.0
P2P Digital Currency
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
walletdb.h File Reference
#include <script/sign.h>
#include <wallet/db.h>
#include <wallet/walletutil.h>
#include <key.h>
#include <stdint.h>
#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
 
class  wallet::WalletBatch
 Access to the wallet database. More...
 

Namespaces

 wallet
 
 wallet::DBKeys
 

Typedefs

using wallet::KeyFilterFn = std::function< bool(const std::string &)>
 Callback for filtering key types to deserialize in ReadKeyValue. More...
 

Enumerations

enum  wallet::DBErrors {
  wallet::DBErrors::LOAD_OK, wallet::DBErrors::CORRUPT, wallet::DBErrors::NONCRITICAL_ERROR, wallet::DBErrors::TOO_NEW,
  wallet::DBErrors::LOAD_FAIL, wallet::DBErrors::NEED_REWRITE, wallet::DBErrors::NEED_RESCAN
}
 Error statuses for the wallet database. More...
 

Functions

void wallet::MaybeCompactWalletDB (WalletContext &context)
 Compacts BDB state so that wallet.dat is self-contained (if there are changes) More...
 
bool wallet::ReadKeyValue (CWallet *pwallet, CDataStream &ssKey, CDataStream &ssValue, std::string &strType, std::string &strErr, const KeyFilterFn &filter_fn=nullptr)
 Unserialize a given Key-Value pair and load it into the wallet. More...
 
std::unique_ptr< WalletDatabase > wallet::CreateDummyWalletDatabase ()
 Return object for accessing dummy database with no read/write capabilities. More...
 
std::unique_ptr< WalletDatabase > wallet::CreateMockWalletDatabase ()
 Return object for accessing temporary in-memory database. More...
 

Variables

static const bool wallet::DEFAULT_FLUSHWALLET = true
 Overview of wallet database classes: More...