use { solana_runtime::bank::RewardInfo, solana_sdk::{clock::UnixTimestamp, pubkey::Pubkey}, std::sync::{Arc, RwLock}, }; /// Interface for notifying block metadata changes pub trait BlockMetadataNotifier { /// Notify the block metadata fn notify_block_metadata( &self, slot: u64, blockhash: &str, rewards: &RwLock>, block_time: Option, block_height: Option, ); } pub type BlockMetadataNotifierLock = Arc>;