diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -1646,7 +1646,11 @@ CTxDestination &address, int64_t &index, CKeyPool &keypool) { - return false; + LOCK(cs_desc_man); + std::string error; + bool result = GetNewDestination(type, address, error); + index = m_wallet_descriptor.next_index - 1; + return result; } void DescriptorScriptPubKeyMan::ReturnDestination(int64_t index, bool internal,