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