Skip to content

Commit d4c18f7

Browse files
committed
Bump wallet version number to 159900
1 parent ba05971 commit d4c18f7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3832,8 +3832,8 @@ CWallet* CWallet::CreateWalletFromFile(const std::string walletFile)
38323832
// Create new keyUser and set as default key
38333833
if (gArgs.GetBoolArg("-usehd", DEFAULT_USE_HD_WALLET) && !walletInstance->IsHDEnabled()) {
38343834

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);
38373837

38383838
// generate a new master key
38393839
CPubKey masterPubKey = walletInstance->GenerateNewHDMasterKey();

src/wallet/wallet.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ enum WalletFeature
9696

9797
FEATURE_HD_SPLIT = 139900, // Wallet with HD chain split (change outputs will use m/0'/1'/k)
9898

99+
FEATURE_NO_DEFAULT_KEY = 159900, // Wallet without a default key written
100+
99101
FEATURE_LATEST = FEATURE_COMPRPUBKEY // HD is optional, use FEATURE_COMPRPUBKEY as latest version
100102
};
101103

0 commit comments

Comments
 (0)