https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
}
CKeyPoolCKeyPool()
{
    nTime = GetTime();
    fInternal = false;
    m_pre_split = false;
}
CKeyPoolCKeyPool(const CPubKey& vchPubKeyIn, bool internalIn)
{
    nTime = GetTime();
    vchPubKey = vchPubKeyIn;
    fInternal = internalIn;
    m_pre_split = false;
}
int CWalletGetTxDepthInMainChain(const CWalletTx& wtx) const
{
    AssertLockHeld(cs_);
    if (auto* conf = wtx.state<TxStateConfirmed>()) {
        return GetLastBlockHeight() - conf->confirmed_block_height + 1;
    } else if (auto* conf = wtx.state<TxStateConflicted>()) {
        return -1 * (GetLastBlockHeight() - conf->conflicting_block_height + 1);
    } else {
        return 0;
    }
}
int CWalletGetTxBlocksToMaturity(const CWalletTx& wtx) const
{
    AssertLockHeld(cs_);
    if (!wtx.IsCoinBase()) {
        return 0;