File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3832,8 +3832,8 @@ CWallet* CWallet::CreateWalletFromFile(const std::string walletFile)
3832
3832
// Create new keyUser and set as default key
3833
3833
if (gArgs .GetBoolArg (" -usehd" , DEFAULT_USE_HD_WALLET) && !walletInstance->IsHDEnabled ()) {
3834
3834
3835
- // ensure this wallet.dat can only be opened by clients supporting HD with chain split
3836
- walletInstance->SetMinVersion (FEATURE_HD_SPLIT );
3835
+ // ensure this wallet.dat can only be opened by clients supporting HD with chain split and expects no default key
3836
+ walletInstance->SetMinVersion (FEATURE_NO_DEFAULT_KEY );
3837
3837
3838
3838
// generate a new master key
3839
3839
CPubKey masterPubKey = walletInstance->GenerateNewHDMasterKey ();
Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ enum WalletFeature
96
96
97
97
FEATURE_HD_SPLIT = 139900 , // Wallet with HD chain split (change outputs will use m/0'/1'/k)
98
98
99
+ FEATURE_NO_DEFAULT_KEY = 159900 , // Wallet without a default key written
100
+
99
101
FEATURE_LATEST = FEATURE_COMPRPUBKEY // HD is optional, use FEATURE_COMPRPUBKEY as latest version
100
102
};
101
103
You can’t perform that action at this time.
0 commit comments