fn ensure_timestamp_progress(&mut self) -> Result<(), Error> {
        let current_libra_timestamp = self.libra.libra_timestamp()?;
        if current_libra_timestamp <= self.last_checked_libra_timestamp {
            return Err(Error::LivenessError(
                self.last_checked_libra_timestamp,
                current_libra_timestamp,
            ));
        }

        self.last_checked_libra_timestamp = current_libra_timestamp;
        Ok(())
    }
/// Ensures that the libra_timestamp() value registered on-chain is strictly monotonically
/// increasing.
Ensures that the libra_timestamp() value registered on-chain is strictly monotonically
increasing.
Ensures that the libra_timestamp () value registered on - chain is strictly monotonically increasing .
fn ensure_timestamp_progress(&mut self) -> Result<(), Error> {
        let current_libra_timestamp = self.libra.libra_timestamp()?;
        if current_libra_timestamp <= self.last_checked_libra_timestamp {
            return Err(Error::LivenessError(
                self.last_checked_libra_timestamp,
                current_libra_timestamp,
            ));
        }
        self.last_checked_libra_timestamp = current_libra_timestamp;
        Ok(())
    }
fn ensure_timestamp_progress ( & mut self ) -> Result < ( ) , Error > { let current_libra_timestamp = self . libra . libra_timestamp ( ) ? ; if current_libra_timestamp <= self . last_checked_libra_timestamp { return Err ( Error :: LivenessError ( self . last_checked_libra_timestamp , current_libra_timestamp , ) ) ; } self . last_checked_libra_timestamp = current_libra_timestamp ; Ok ( ( ) ) }
Ensures that the libra_timestamp() value registered on-chain is strictly monotonically
increasing.
Ensures that the libra_timestamp () value registered on - chain is strictly monotonically increasing .
&mut self
&mut self