fn is_checkpoint_valid(
    network: &Network,
    prev_header: &StoredHeader,
    header: &BlockHeader,
) -> bool {
    let checkpoints = checkpoints(network);
    let next_height = prev_header.height.saturating_add(1);
    if let Some(next_hash) = checkpoints.get(&next_height) {
        return *next_hash == header.block_hash();
    }

    true
}
/// If the height of the header is the same as a checkpoint,
/// then ensure that the header is matching.
If the height of the header is the same as a checkpoint,
then ensure that the header is matching.
If the height of the header is the same as a checkpoint then ensure that the header is matching .
fn is_checkpoint_valid(
    network: &Network,
    prev_header: &StoredHeader,
    header: &BlockHeader,
) -> bool {
    let checkpoints = checkpoints(network);
    let next_height = prev_header.height.saturating_add(1);
    if let Some(next_hash) = checkpoints.get(&next_height) {
        return *next_hash == header.block_hash();
    }
    true
}
fn is_checkpoint_valid ( network : & Network , prev_header : & StoredHeader , header : & BlockHeader , ) -> bool { let checkpoints = checkpoints ( network ) ; let next_height = prev_header . height . saturating_add ( 1 ) ; if let Some ( next_hash ) = checkpoints . get ( & next_height ) { return * next_hash == header . block_hash ( ) ; } true }
If the height of the header is the same as a checkpoint,
then ensure that the header is matching.
If the height of the header is the same as a checkpoint then ensure that the header is matching .
network
&Network
prev_header
&StoredHeader
header
&BlockHeader
network
&Network
prev_header
&StoredHeader
header
&BlockHeader