Skip to content

Commit

Permalink
Ensure Dash wallets < 0.12.2 can't open HD wallets (#1638)
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock authored and UdjinM6 committed Sep 19, 2017
1 parent 026ad84 commit 7ab175a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
return InitError(_("Mnemonic passphrase is too long, must be at most 256 characters"));
// generate a new master key
pwalletMain->GenerateNewHDChain();

// ensure this wallet.dat can only be opened by clients supporting HD
pwalletMain->SetMinVersion(FEATURE_HD);
}

CPubKey newDefaultKey;
Expand Down

0 comments on commit 7ab175a

Please sign in to comment.