pub trait AccountsUpdateNotifierInterface: Debug {
// Required methods
fn snapshot_notifications_enabled(&self) -> bool;
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,
write_version: u64,
account: &AccountForGeyser<'_>,
);
fn notify_end_of_restore_from_snapshot(&self);
}๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Required Methodsยง
Sourcefn snapshot_notifications_enabled(&self) -> bool
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
fn snapshot_notifications_enabled(&self) -> bool
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Enable account notifications from snapshot
Sourcefn notify_account_update(
&self,
slot: Slot,
account: &AccountSharedData,
txn: &Option<&SanitizedTransaction>,
pubkey: &Pubkey,
write_version: u64,
)
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
fn notify_account_update( &self, slot: Slot, account: &AccountSharedData, txn: &Option<&SanitizedTransaction>, pubkey: &Pubkey, write_version: u64, )
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Notified when an account is updated at runtime, due to transaction activities
Sourcefn notify_account_restore_from_snapshot(
&self,
slot: Slot,
write_version: u64,
account: &AccountForGeyser<'_>,
)
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
fn notify_account_restore_from_snapshot( &self, slot: Slot, write_version: u64, account: &AccountForGeyser<'_>, )
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Notified when the AccountsDb is initialized at start when restored from a snapshot.
Sourcefn notify_end_of_restore_from_snapshot(&self)
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
fn notify_end_of_restore_from_snapshot(&self)
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Notified when all accounts have been notified when restoring from a snapshot.