This is to track the regression introduced in master, which needs fixing for 0.14. See #9240, #9371, etc.
{
    LOCK(cs_wallet);
    
    SetMinVersion(FEATURE_HD);
    
    
    
    CHDChain newHdChain;
    newHdChain.masterKeyID = pubkey.GetID();
    SetHDChain(newHdChain, false);
    return true;
}
bool CWallet::SetHDChain(const CHDChain& chain, bool memonly)
{
    LOCK(cs_wallet);
    if (!memonly && !CWalletDB(strWalletFile).WriteHDChain(chain))
        throw runtime_error(std::string(__func__) + ": writing chain failed");
    hdChain = chain;
    return true;
}
bool CWallet::IsHDEnabled()
{
    return !hdChain.masterKeyID.IsNull();
}
int64_t CWalletTx::GetTxTime() const