pub fn is_sequential(epoch: Epoch, new_epoch: Epoch) -> bool {
        let epoch_id = epoch as u8;
        let new_epoch_id = new_epoch as u8;
        epoch_id >= Epoch::Epoch0 as u8 && new_epoch_id == epoch_id + 1
    }
/** Checks that new_epoch is 1 version higher than epoch */
Checks that new_epoch is 1 version higher than epoch
Checks that new_epoch is 1 version higher than epoch
pub fn is_sequential(epoch: Epoch, new_epoch: Epoch) -> bool {
        let epoch_id = epoch as u8;
        let new_epoch_id = new_epoch as u8;
        epoch_id >= Epoch::Epoch0 as u8 && new_epoch_id == epoch_id + 1
    }
pub fn is_sequential ( epoch : Epoch , new_epoch : Epoch ) -> bool { let epoch_id = epoch as u8 ; let new_epoch_id = new_epoch as u8 ; epoch_id >= Epoch :: Epoch0 as u8 && new_epoch_id == epoch_id + 1 }
Checks that new_epoch is 1 version higher than epoch
Checks that new_epoch is 1 version higher than epoch
epoch
Epoch
new_epoch
Epoch
epoch
Epoch
new_epoch
Epoch