Skip to content

Commit

Permalink
Merge pull request #211 from ralexstokes/time-pub
Browse files Browse the repository at this point in the history
expose function for other users
  • Loading branch information
ralexstokes authored Aug 5, 2023
2 parents 4001c62 + 07af0ec commit 2bcb975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethereum-consensus/src/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl<T: TimeProvider + Send + Sync> Clock<T> {
}

#[inline]
fn slot_at_time(&self, current_time: u64) -> Option<Slot> {
pub fn slot_at_time(&self, current_time: u64) -> Option<Slot> {
convert_timestamp_to_slot(current_time, self.genesis_time, self.seconds_per_slot)
}

Expand Down

0 comments on commit 2bcb975

Please sign in to comment.