From c0611cb574133838d5a7a6f961f16f754cbcee8c Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Fri, 26 May 2023 16:08:24 +0900 Subject: [PATCH] Don't needlessly expose Slot from solana-poh (#31832) --- poh/src/poh_recorder.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/poh/src/poh_recorder.rs b/poh/src/poh_recorder.rs index b1d5b7008a..342d3c8f2c 100644 --- a/poh/src/poh_recorder.rs +++ b/poh/src/poh_recorder.rs @@ -10,7 +10,6 @@ //! For Entries: //! * recorded entry must be >= WorkingBank::min_tick_height && entry must be < WorkingBank::max_tick_height //! -pub use solana_sdk::clock::Slot; use { crate::{leader_bank_notifier::LeaderBankNotifier, poh_service::PohService}, crossbeam_channel::{unbounded, Receiver, RecvTimeoutError, SendError, Sender, TrySendError}, @@ -28,8 +27,12 @@ use { solana_metrics::poh_timing_point::{send_poh_timing_point, PohTimingSender, SlotPohTimingInfo}, solana_runtime::bank::Bank, solana_sdk::{ - clock::NUM_CONSECUTIVE_LEADER_SLOTS, hash::Hash, poh_config::PohConfig, pubkey::Pubkey, - saturating_add_assign, transaction::VersionedTransaction, + clock::{Slot, NUM_CONSECUTIVE_LEADER_SLOTS}, + hash::Hash, + poh_config::PohConfig, + pubkey::Pubkey, + saturating_add_assign, + transaction::VersionedTransaction, }, std::{ cmp,