Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | enum WalletFlags : uint64_t { | ||||
//! initialization that should only happen on first run. | //! initialization that should only happen on first run. | ||||
//! | //! | ||||
//! This flag is also a mandatory flag to prevent previous versions of | //! This flag is also a mandatory flag to prevent previous versions of | ||||
//! bitcoin from opening the wallet, thinking it was newly created, and | //! bitcoin from opening the wallet, thinking it was newly created, and | ||||
//! then improperly reinitializing it. | //! then improperly reinitializing it. | ||||
WALLET_FLAG_BLANK_WALLET = (1ULL << 33), | WALLET_FLAG_BLANK_WALLET = (1ULL << 33), | ||||
}; | }; | ||||
static constexpr uint64_t g_known_wallet_flags = | static constexpr uint64_t KNOWN_WALLET_FLAGS = | ||||
WALLET_FLAG_DISABLE_PRIVATE_KEYS | WALLET_FLAG_BLANK_WALLET | | WALLET_FLAG_DISABLE_PRIVATE_KEYS | WALLET_FLAG_BLANK_WALLET | | ||||
WALLET_FLAG_KEY_ORIGIN_METADATA; | WALLET_FLAG_KEY_ORIGIN_METADATA; | ||||
/** | /** | ||||
* A key from a CWallet's keypool | * A key from a CWallet's keypool | ||||
* | * | ||||
* The wallet holds one (for pre HD-split wallets) or several keypools. These | * The wallet holds one (for pre HD-split wallets) or several keypools. These | ||||
* are sets of keys that have not yet been used to provide addresses or receive | * are sets of keys that have not yet been used to provide addresses or receive | ||||
▲ Show 20 Lines • Show All 1,444 Lines • Show Last 20 Lines |