@@ -99,58 +99,12 @@ struct FeeCalculation;
99
99
enum class FeeEstimateMode ;
100
100
class ReserveDestination ;
101
101
102
- /* * (client) version numbers for particular wallet features */
103
- enum WalletFeature
104
- {
105
- FEATURE_BASE = 10500 , // the earliest version new wallets supports (only useful for getwalletinfo's clientversion output)
106
-
107
- FEATURE_WALLETCRYPT = 40000 , // wallet encryption
108
- FEATURE_COMPRPUBKEY = 60000 , // compressed public keys
109
-
110
- FEATURE_HD = 130000 , // Hierarchical key derivation after BIP32 (HD Wallet)
111
-
112
- FEATURE_HD_SPLIT = 139900 , // Wallet with HD chain split (change outputs will use m/0'/1'/k)
113
-
114
- FEATURE_NO_DEFAULT_KEY = 159900 , // Wallet without a default key written
115
-
116
- FEATURE_PRE_SPLIT_KEYPOOL = 169900 , // Upgraded to HD SPLIT and can have a pre-split keypool
117
-
118
- FEATURE_LATEST = FEATURE_PRE_SPLIT_KEYPOOL
119
- };
120
-
121
102
// ! Default for -addresstype
122
103
constexpr OutputType DEFAULT_ADDRESS_TYPE{OutputType::BECH32};
123
104
124
105
// ! Default for -changetype
125
106
constexpr OutputType DEFAULT_CHANGE_TYPE{OutputType::CHANGE_AUTO};
126
107
127
- enum WalletFlags : uint64_t {
128
- // wallet flags in the upper section (> 1 << 31) will lead to not opening the wallet if flag is unknown
129
- // unknown wallet flags in the lower section <= (1 << 31) will be tolerated
130
-
131
- // will categorize coins as clean (not reused) and dirty (reused), and handle
132
- // them with privacy considerations in mind
133
- WALLET_FLAG_AVOID_REUSE = (1ULL << 0 ),
134
-
135
- // Indicates that the metadata has already been upgraded to contain key origins
136
- WALLET_FLAG_KEY_ORIGIN_METADATA = (1ULL << 1 ),
137
-
138
- // will enforce the rule that the wallet can't contain any private keys (only watch-only/pubkeys)
139
- WALLET_FLAG_DISABLE_PRIVATE_KEYS = (1ULL << 32 ),
140
-
141
- // ! Flag set when a wallet contains no HD seed and no private keys, scripts,
142
- // ! addresses, and other watch only things, and is therefore "blank."
143
- // !
144
- // ! The only function this flag serves is to distinguish a blank wallet from
145
- // ! a newly created wallet when the wallet database is loaded, to avoid
146
- // ! initialization that should only happen on first run.
147
- // !
148
- // ! This flag is also a mandatory flag to prevent previous versions of
149
- // ! bitcoin from opening the wallet, thinking it was newly created, and
150
- // ! then improperly reinitializing it.
151
- WALLET_FLAG_BLANK_WALLET = (1ULL << 33 ),
152
- };
153
-
154
108
static constexpr uint64_t KNOWN_WALLET_FLAGS =
155
109
WALLET_FLAG_AVOID_REUSE
156
110
| WALLET_FLAG_BLANK_WALLET
0 commit comments