diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-03-24 10:57:55 +0100 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-03-24 10:57:55 +0100 |
commit | 1df08d1580fbab9e58017cf6c1ecb73550bf6ed7 (patch) | |
tree | e80c3368437840a546859f7bbd783682bd0e59c6 /src/wallet | |
parent | cd468d07d5dc3bc953f3fa07784aa842ecfd6b9f (diff) | |
download | bitcoin-1df08d1580fbab9e58017cf6c1ecb73550bf6ed7.tar.xz |
Add assertion for CanSupportFeature(FEATURE_HD_SPLIT)
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index d7d2927ba2..4e625f64d1 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -138,6 +138,7 @@ void CWallet::DeriveNewChildKey(CKeyMetadata& metadata, CKey& secret, bool inter masterKey.Derive(accountKey, BIP32_HARDENED_KEY_LIMIT); // derive m/0'/0' (external chain) OR m/0'/1' (internal chain) + assert(internal ? CanSupportFeature(FEATURE_HD_SPLIT) : true); accountKey.Derive(chainChildKey, BIP32_HARDENED_KEY_LIMIT+(internal ? 1 : 0)); // derive child key at next index, skip keys already known to the wallet |