use { solana_accounts_db::stake_rewards::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, parent_slot: u64, parent_blockhash: &str, slot: u64, blockhash: &str, rewards: &RwLock>, block_time: Option, block_height: Option, executed_transaction_count: u64, ); } pub type BlockMetadataNotifierLock = Arc>;