Trait solana_runtime::accounts_update_notifier_interface::AccountsUpdateNotifierInterface
source · [−]pub trait AccountsUpdateNotifierInterface: Debug {
fn notify_account_update(
&self,
slot: Slot,
meta: &StoredMeta,
account: &AccountSharedData,
txn_signature: &Option<&Signature>
);
fn notify_account_restore_from_snapshot(
&self,
slot: Slot,
account: &StoredAccountMeta<'_>
);
fn notify_end_of_restore_from_snapshot(&self);
}
Required Methods
fn notify_account_update(
&self,
slot: Slot,
meta: &StoredMeta,
account: &AccountSharedData,
txn_signature: &Option<&Signature>
)
fn notify_account_update(
&self,
slot: Slot,
meta: &StoredMeta,
account: &AccountSharedData,
txn_signature: &Option<&Signature>
)
Notified when an account is updated at runtime, due to transaction activities
fn 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.
Notified when all accounts have been notified when restoring from a snapshot.