pub trait AccountsUpdateNotifierInterface: Debug {
// Required methods
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);
}
Required Methods§
sourcefn notify_account_update(
&self,
slot: Slot,
account: &AccountSharedData,
txn: &Option<&SanitizedTransaction>,
pubkey: &Pubkey,
write_version: u64,
)
fn notify_account_update( &self, slot: Slot, account: &AccountSharedData, txn: &Option<&SanitizedTransaction>, pubkey: &Pubkey, write_version: u64, )
Notified when an account is updated at runtime, due to transaction activities
sourcefn notify_account_restore_from_snapshot(
&self,
slot: Slot,
account: &StoredAccountMeta<'_>,
)
fn notify_account_restore_from_snapshot( &self, slot: Slot, account: &StoredAccountMeta<'_>, )
Notified when the AccountsDb is initialized at start when restored from a snapshot.
sourcefn notify_end_of_restore_from_snapshot(&self)
fn notify_end_of_restore_from_snapshot(&self)
Notified when all accounts have been notified when restoring from a snapshot.