pub(crate) fn has_ping(&self, creator: ValidatorIndex, timestamp: Timestamp) -> bool {
        self.pings
            .get(creator)
            .map_or(false, |ping_time| *ping_time >= timestamp)
    }
/// Returns `true` if the latest timestamp we have is older than the given timestamp.
Returns `true` if the latest timestamp we have is older than the given timestamp.
Returns ` true ` if the latest timestamp we have is older than the given timestamp .
pub(crate) fn has_ping(&self, creator: ValidatorIndex, timestamp: Timestamp) -> bool {
        self.pings
            .get(creator)
            .map_or(false, |ping_time| *ping_time >= timestamp)
    }
pub ( crate ) fn has_ping ( & self , creator : ValidatorIndex , timestamp : Timestamp ) -> bool { self . pings . get ( creator ) . map_or ( false , | ping_time | * ping_time >= timestamp ) }
Returns `true` if the latest timestamp we have is older than the given timestamp.
Returns ` true ` if the latest timestamp we have is older than the given timestamp .
&self
creator
ValidatorIndex
timestamp
Timestamp
&self
creator
ValidatorIndex
timestamp
Timestamp