Don't needlessly expose Slot from solana-poh (#31832)

This commit is contained in:
Ryo Onodera 2023-05-26 16:08:24 +09:00 committed by GitHub
parent bf6e248bb9
commit c0611cb574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -10,7 +10,6 @@
//! For Entries: //! For Entries:
//! * recorded entry must be >= WorkingBank::min_tick_height && entry must be < WorkingBank::max_tick_height //! * recorded entry must be >= WorkingBank::min_tick_height && entry must be < WorkingBank::max_tick_height
//! //!
pub use solana_sdk::clock::Slot;
use { use {
crate::{leader_bank_notifier::LeaderBankNotifier, poh_service::PohService}, crate::{leader_bank_notifier::LeaderBankNotifier, poh_service::PohService},
crossbeam_channel::{unbounded, Receiver, RecvTimeoutError, SendError, Sender, TrySendError}, 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_metrics::poh_timing_point::{send_poh_timing_point, PohTimingSender, SlotPohTimingInfo},
solana_runtime::bank::Bank, solana_runtime::bank::Bank,
solana_sdk::{ solana_sdk::{
clock::NUM_CONSECUTIVE_LEADER_SLOTS, hash::Hash, poh_config::PohConfig, pubkey::Pubkey, clock::{Slot, NUM_CONSECUTIVE_LEADER_SLOTS},
saturating_add_assign, transaction::VersionedTransaction, hash::Hash,
poh_config::PohConfig,
pubkey::Pubkey,
saturating_add_assign,
transaction::VersionedTransaction,
}, },
std::{ std::{
cmp, cmp,