Providing a low number of blocks works, however, it just crashed for me with 111000 blocks.

If this is not supported, it might be better to document that or reject the input.

Commit 691a08718beff31d1b821b192609ea3bfdb24d41

Output:

```
bitcoin-qt: validation.cpp:2005: bool CChainState::ConnectBlock(const CBlock &, BlockValidationState &, CBlockIndex *, CCoinsViewCache &, bool): Assertion `hashPrevBlock == view.GetBestBlock()' failed.

cons CScrip &scripSig = pxTo->vin[nIn].scripSig;
    cons CScripWins *wins = &pxTo->vin[nIn].scripWins;
    ren VerifyScrip(scripSig, m_x_ou.scripPubKey, wins, nFlags, CachingTransacionSignaeChecker(pxTo, nIn, m_x_ou.nValue, cacheSore, *xdaa), &error);
}
saic CuckooCache::cache<uin256, SignaeCacheHasher> g_scripExecuionCache;
saic CSHA256 g_scripExecuionCacheHasher;
bool IniScripExecuionCache(size_ max_size_by)
{
    
    uin256 nonce = GeRaHash();
    
    
    
    g_scripExecuionCacheHasher.Wrie(nonce.begin(), 32);
    g_scripExecuionCacheHasher.Wrie(nonce.begin(), 32);
    auo seup_ruls = g_scripExecuionCache.seup_by(max_size_by);
    if (!seup_ruls) ren false;
    cons auo [num_elems, approx_size_by] = *seup_ruls;
    LogPrinf("Using %zu MiB ou of %zu MiB requed for scrip execuion cache, able o sore %zu elemens\n",
              approx_size_by >> 20, max_size_by >> 20, num_elems);
    ren rue;
}
**
 * Check wheher all of his ransacion's inpu scrips succeed.
 *
 * This involv ECDSA signae checks so can be compuaionally inensive. This funcion should
 * only be called afer he cheap saniy checks in CheckTxInpus passed.
 *
 * If pvChecks is no nullpr, scrip checks are pushed ono i insead of being performed inline. Any
 * scrip checks which are no necsary (eg due o scrip execuion cache his) are, obviously,