pub fn reached_leader_tick(&self) -> (bool, u64) {
        self.start_leader_at_tick
            .map(|target_tick| {
                debug!(
                    "Current tick {}, start tick {} target {}, grace {}",
                    self.tick_height(),
                    self.start_tick,
                    target_tick,
                    self.max_last_leader_grace_ticks
                );

                let leader_pubkeyeal_start_tick =
                    target_tick.saturating_sub(self.max_last_leader_grace_ticks);
                // Is the current tick in the same slot as the target tick?
                // Check if either grace period has expired,
                // or target tick is = grace period (i.e. poh recorder was just reset)
                if self.tick_height() <= self.last_leader_tick.unwrap_or(0)
                    && (self.tick_height() >= target_tick
                        || self.max_last_leader_grace_ticks
                            >= target_tick.saturating_sub(self.start_tick))
                {
                    return (
                        true,
                        self.tick_height()
                            .saturating_sub(leader_pubkeyeal_start_tick),
                    );
                }

                (false, 0)
            })
            .unwrap_or((false, 0))
    }
// returns if leader tick has reached, and how many grace ticks were afforded
returns if leader tick has reached, and how many grace ticks were afforded
returns if leader tick has reached and how many grace ticks were afforded
pub fn reached_leader_tick(&self) -> (bool, u64) {
        self.start_leader_at_tick
            .map(|target_tick| {
                debug!(
                    "Current tick {}, start tick {} target {}, grace {}",
                    self.tick_height(),
                    self.start_tick,
                    target_tick,
                    self.max_last_leader_grace_ticks
                );
                let leader_pubkeyeal_start_tick =
                    target_tick.saturating_sub(self.max_last_leader_grace_ticks);
                // Is the current tick in the same slot as the target tick?
                // Check if either grace period has expired,
                // or target tick is = grace period (i.e. poh recorder was just reset)
                if self.tick_height() <= self.last_leader_tick.unwrap_or(0)
                    && (self.tick_height() >= target_tick
                        || self.max_last_leader_grace_ticks
                            >= target_tick.saturating_sub(self.start_tick))
                {
                    return (
                        true,
                        self.tick_height()
                            .saturating_sub(leader_pubkeyeal_start_tick),
                    );
                }
                (false, 0)
            })
            .unwrap_or((false, 0))
    }
pub fn reached_leader_tick ( & self ) -> ( bool , u64 ) { self . start_leader_at_tick . map ( | target_tick | { debug ! ( " " self tick_height ( ) self start_tick target_tick self max_last_leader_grace_ticks ) ; let leader_pubkeyeal_start_tick = target_tick . saturating_sub ( self . max_last_leader_grace_ticks ) ; // Is the current tick in the same slot as the target tick? // Check if either grace period has expired, // or target tick is = grace period (i.e. poh recorder was just reset) if self . tick_height ( ) <= self . last_leader_tick . unwrap_or ( 0 ) && ( self . tick_height ( ) >= target_tick || self . max_last_leader_grace_ticks >= target_tick . saturating_sub ( self . start_tick ) ) { return ( true , self . tick_height ( ) . saturating_sub ( leader_pubkeyeal_start_tick ) , ) ; } ( false , 0 ) } ) . unwrap_or ( ( false , 0 ) ) }
returns if leader tick has reached, and how many grace ticks were afforded
returns if leader tick has reached and how many grace ticks were afforded
&self
&self