Bitcoin Core  0.19.99
P2P Digital Currency
Classes | Enumerations | Functions
walletutil.h File Reference
#include <fs.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...
 

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) }
 

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 13 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.

Definition at line 33 of file walletutil.h.

Function Documentation

◆ GetWalletDir()

fs::path GetWalletDir ( )

Get the path of the wallet directory.

Definition at line 60 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 65 of file dummywallet.cpp.

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