                }
            }
            previous_proof = Some(proof);

            // Check that the proof is within the reporting window.
            if !proof.is_valid_at(block_height) {
                return Err(BlockError::InvalidForkProof);
            }
        }
