Bitcoin Core  0.20.99
P2P Digital Currency
Classes | Enumerations | Functions
walletutil.h File Reference
#include <fs.h>
#include <script/descriptor.h>
#include <vector>
Include dependency graph for walletutil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WalletLocation
 The WalletLocation class provides wallet information. More...
 
class  WalletDescriptor
 Descriptor with some wallet metadata. More...
 

Enumerations

enum  WalletFeature {
  FEATURE_BASE = 10500, FEATURE_WALLETCRYPT = 40000, FEATURE_COMPRPUBKEY = 60000, FEATURE_HD = 130000,
  FEATURE_HD_SPLIT = 139900, FEATURE_NO_DEFAULT_KEY = 159900, FEATURE_PRE_SPLIT_KEYPOOL = 169900, FEATURE_LATEST = FEATURE_PRE_SPLIT_KEYPOOL
}
 (client) version numbers for particular wallet features More...
 
enum  WalletFlags : uint64_t {
  WALLET_FLAG_AVOID_REUSE = (1ULL << 0), WALLET_FLAG_KEY_ORIGIN_METADATA = (1ULL << 1), WALLET_FLAG_DISABLE_PRIVATE_KEYS = (1ULL << 32), WALLET_FLAG_BLANK_WALLET = (1ULL << 33),
  WALLET_FLAG_DESCRIPTORS = (1ULL << 34)
}
 

Functions

fs::path GetWalletDir ()
 Get the path of the wallet directory. More...
 
std::vector< fs::path > ListWalletDir ()
 Get wallets in wallet directory. More...
 

Enumeration Type Documentation

◆ WalletFeature

(client) version numbers for particular wallet features

Enumerator
FEATURE_BASE 
FEATURE_WALLETCRYPT 
FEATURE_COMPRPUBKEY 
FEATURE_HD 
FEATURE_HD_SPLIT 
FEATURE_NO_DEFAULT_KEY 
FEATURE_PRE_SPLIT_KEYPOOL 
FEATURE_LATEST 

Definition at line 14 of file walletutil.h.

◆ WalletFlags

enum WalletFlags : uint64_t
Enumerator
WALLET_FLAG_AVOID_REUSE 
WALLET_FLAG_KEY_ORIGIN_METADATA 
WALLET_FLAG_DISABLE_PRIVATE_KEYS 
WALLET_FLAG_BLANK_WALLET 

Flag set when a wallet contains no HD seed and no private keys, scripts, addresses, and other watch only things, and is therefore "blank.".

The only function this flag serves is to distinguish a blank wallet from a newly created wallet when the wallet database is loaded, to avoid initialization that should only happen on first run.

This flag is also a mandatory flag to prevent previous versions of bitcoin from opening the wallet, thinking it was newly created, and then improperly reinitializing it.

WALLET_FLAG_DESCRIPTORS 

Indicate that this wallet supports DescriptorScriptPubKeyMan.

Definition at line 34 of file walletutil.h.

Function Documentation

◆ GetWalletDir()

fs::path GetWalletDir ( )

Get the path of the wallet directory.

Definition at line 61 of file dummywallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ListWalletDir()

std::vector<fs::path> ListWalletDir ( )

Get wallets in wallet directory.

Definition at line 66 of file dummywallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: