fn handle_request_state_timer(&mut self, now: Timestamp) -> ProtocolOutcomes<I, C> {
        if self.evidence_only || self.finalized_switch_block() {
            return vec![]; // Era has ended. No further progress is expected.
        }
        debug!(
            instance_id = ?self.highway.instance_id(),
            "requesting latest state from random peer",
        );
        // Request latest state from a peer and schedule the next request.
        let mut outcomes = self.latest_state_request();
        if let Some(interval) = self.config.request_state_interval {
            outcomes.push(ProtocolOutcome::ScheduleTimer(
                now + interval,
                TIMER_ID_REQUEST_STATE,
            ));
        }
        outcomes
    }
/// Request the latest state from a random peer.
Request the latest state from a random peer.
Request the latest state from a random peer .
fn handle_request_state_timer(&mut self, now: Timestamp) -> ProtocolOutcomes<I, C> {
        if self.evidence_only || self.finalized_switch_block() {
            return vec![]; // Era has ended. No further progress is expected.
        }
        debug!(
            instance_id = ?self.highway.instance_id(),
            "requesting latest state from random peer",
        );
        // Request latest state from a peer and schedule the next request.
        let mut outcomes = self.latest_state_request();
        if let Some(interval) = self.config.request_state_interval {
            outcomes.push(ProtocolOutcome::ScheduleTimer(
                now + interval,
                TIMER_ID_REQUEST_STATE,
            ));
        }
        outcomes
    }
fn handle_request_state_timer ( & mut self , now : Timestamp ) -> ProtocolOutcomes < I , C > { if self . evidence_only || self . finalized_switch_block ( ) { return vec ! [ ] ; // Era has ended. No further progress is expected. } debug ! ( instance_id self highway instance_id ( ) " " ) ; // Request latest state from a peer and schedule the next request. let mut outcomes = self . latest_state_request ( ) ; if let Some ( interval ) = self . config . request_state_interval { outcomes . push ( ProtocolOutcome :: ScheduleTimer ( now + interval , TIMER_ID_REQUEST_STATE , ) ) ; } outcomes }
Request the latest state from a random peer.
Request the latest state from a random peer .
&mut self
now
Timestamp
&mut self
now
Timestamp