[Wallet] Ensure <0.13 clients can't open HD wallets

3b38a6a96a
This commit is contained in:
lateminer
2018-01-02 13:18:39 +03:00
parent 09176edb18
commit 138d9e7f56
2 changed files with 3 additions and 2 deletions

View File

@@ -1382,6 +1382,9 @@ bool CWallet::SetHDMasterKey(const CKey& key)
{
LOCK(cs_wallet);
// ensure this wallet.dat can only be opened by clients supporting HD
SetMinVersion(FEATURE_HD);
// store the key as normal "key"/"ckey" object
// in the database
// key metadata is not required