https://travis-ci.org/github/bitcoin/bitcoin/jobs/679885530#L8791
{
    m_spk_man = pwallet->GetScriptPubKeyMan(type, internal);
    if (!m_spk_man) {
        return false;
    }
    if (nIndex == -1)
    {
        m_spk_man->TopUp();
        CKeyPool keypool;
        if (!m_spk_man->GetReservedDestination(type, internal, address, nIndex, keypool)) {
            return false;
        }
        fInternal = keypool.fInternal;
    }
    dest = address;
    return true;
}
void ReserveDestination::KeepDestination()