mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
Make sure we hand out keypool keys if HD_SPLIT is not enabled
This commit is contained in:
parent
469a47b760
commit
9af8f00a75
@ -3001,7 +3001,7 @@ void CWallet::ReserveKeyFromKeyPool(int64_t& nIndex, CKeyPool& keypool, bool int
|
||||
throw std::runtime_error(std::string(__func__) + ": read failed");
|
||||
if (!HaveKey(tmpKeypool.vchPubKey.GetID()))
|
||||
throw std::runtime_error(std::string(__func__) + ": unknown key in key pool");
|
||||
if (!IsHDEnabled() || (tmpKeypool.fInternal == internal && CanSupportFeature(FEATURE_HD_SPLIT)))
|
||||
if (!IsHDEnabled() || !CanSupportFeature(FEATURE_HD_SPLIT) || tmpKeypool.fInternal == internal)
|
||||
{
|
||||
nIndex = id;
|
||||
keypool = tmpKeypool;
|
||||
|
Loading…
Reference in New Issue
Block a user