fn verify_epoch(&self, epoch: u64, safety_data: &SafetyData) -> Result<(), Error> {
        let expected_epoch = safety_data.epoch;
        if epoch != expected_epoch {
            Err(Error::IncorrectEpoch(epoch, expected_epoch))
        } else {
            Ok(())
        }
    }
/// This verifies the epoch given against storage for consistent verification
This verifies the epoch given against storage for consistent verification
This verifies the epoch given against storage for consistent verification
fn verify_epoch(&self, epoch: u64, safety_data: &SafetyData) -> Result<(), Error> {
        let expected_epoch = safety_data.epoch;
        if epoch != expected_epoch {
            Err(Error::IncorrectEpoch(epoch, expected_epoch))
        } else {
            Ok(())
        }
    }
fn verify_epoch ( & self , epoch : u64 , safety_data : & SafetyData ) -> Result < ( ) , Error > { let expected_epoch = safety_data . epoch ; if epoch != expected_epoch { Err ( Error :: IncorrectEpoch ( epoch , expected_epoch ) ) } else { Ok ( ( ) ) } }
This verifies the epoch given against storage for consistent verification
This verifies the epoch given against storage for consistent verification
&self
epoch
u64
safety_data
&SafetyData
&self
epoch
u64
safety_data
&SafetyData