/// 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) -> 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 verifies the epoch given against storage for consistent verification
This verifies the epoch given against storage for consistent verification
&self
epoch
u64