solana/ledger/src/entry_notifier_interface.rs

12 lines
288 B
Rust

use {
solana_entry::entry::EntrySummary,
solana_sdk::clock::Slot,
std::sync::{Arc, RwLock},
};
pub trait EntryNotifier {
fn notify_entry(&self, slot: Slot, index: usize, entry: &EntrySummary);
}
pub type EntryNotifierLock = Arc<RwLock<dyn EntryNotifier + Sync + Send>>;