solana_accounts_db/
accounts_update_notifier_interface.rsuse {
crate::account_storage::meta::StoredAccountMeta,
solana_sdk::{
account::AccountSharedData, clock::Slot, pubkey::Pubkey, transaction::SanitizedTransaction,
},
std::sync::Arc,
};
pub trait AccountsUpdateNotifierInterface: std::fmt::Debug {
fn notify_account_update(
&self,
slot: Slot,
account: &AccountSharedData,
txn: &Option<&SanitizedTransaction>,
pubkey: &Pubkey,
write_version: u64,
);
fn notify_account_restore_from_snapshot(&self, slot: Slot, account: &StoredAccountMeta);
fn notify_end_of_restore_from_snapshot(&self);
}
pub type AccountsUpdateNotifier = Arc<dyn AccountsUpdateNotifierInterface + Sync + Send>;