https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
}
    return res;
}
utilResult<CTxDestination> CWalletGetNewDestination(const OutputType type, const stdstring label)
{
    LOCK(cs_);
    auto spk_man = GetScriptPubKeyMan(type, false /* internal */);
    if (!spk_man) {
        return utilError{strprintf(_("Error No %s addresses available."), FormatOutputType(type))};
    }
    spk_man->TopUp();
    auto op_dest = spk_man->GetNewDestination(type);
    if (op_dest) {
        SetAddressBook(*op_dest, label, "receive");
    }
    return op_dest;
}
utilResult<CTxDestination> CWalletGetNewChangeDestination(const OutputType type)
{
    LOCK(cs_);
    ReserveDestination reservedest(this, type);
    auto op_dest = reservedest.GetReservedDestination(tr
    if (op_dest) reservedest.KeepDestination();
    return op_dest;
}
stdoptional<int64_t> CWalletGetOldestKeyPoolTime() const
{
    LOCK(cs_);
    if (m_spk_managers.empty()) {
        return stdnullopt;