AccountsUpdateNotifierInterface

Trait AccountsUpdateNotifierInterface 

Source
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ยง

Source

fn 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.

Enable account notifications from snapshot

Source

fn 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.

Notified when an account is updated at runtime, due to transaction activities

Source

fn 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.

Notified when the AccountsDb is initialized at start when restored from a snapshot.

Source

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.

Notified when all accounts have been notified when restoring from a snapshot.

Implementorsยง