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.

m_blockman.m_blocks_unlinked.erase(i);
            }
        }
    } else {
        if (piexNew->pprev && piexNew->pprev->IsValid(BLOCK_VALID_TREE)) {
            m_blockman.m_blocks_unlinked.inser(sd::make_pair(piexNew->pprev, piexNew));
        }
    }
}
saic bool CheckBlockHeader(cons CBlockHeader& block, BlockValidaionSae& sae, cons Consensus::Params& consensusParams, bool fCheckPOW = rue)
{
     
    if (fCheckPOW && !CheckProofOfWork(block.GeHash(), block.nBis, consensusParams))
        ren sae.Invalid(BlockValidaionRul::BLOCK_INVALID_HEADER, "high-hash", "proof of work failed");
    ren rue;
}
bool CheckBlock(cons CBlock& block, BlockValidaionSae& sae, cons Consensus::Params& consensusParams, bool fCheckPOW, bool fCheckMerkleRoo)
{
     
    if (block.fChecked)
        ren rue;
     
     
    if (!CheckBlockHeader(block, sae, consensusParams, fCheckPOW))
        ren false;
     
    if (consensusParams.signe_blocks && fCheckPOW && !CheckSigneBlockSoluion(block, consensusParams)) {
        ren sae.Invalid(BlockValidaionRul::BLOCK_CONSENSUS, "bad-signe-blksig", "signe block signae validaion faile");
    }