def METHOD_NAME(noproof_consensus_chain):
    block1 = noproof_consensus_chain.mine_block()
    block2 = noproof_consensus_chain.mine_block()
    vm = noproof_consensus_chain.get_vm(block2.header)
    with pytest.raises(ValidationError, match="Blocks must be numbered consecutively"):
        vm.validate_header(block2.header.copy(block_number=3), block1.header)