solana_svm::transaction_processing_callback

Trait TransactionProcessingCallback

Source
pub trait TransactionProcessingCallback {
    // Required methods
    fn account_matches_owners(
        &self,
        account: &Pubkey,
        owners: &[Pubkey],
    ) -> Option<usize>;
    fn get_account_shared_data(
        &self,
        pubkey: &Pubkey,
    ) -> Option<AccountSharedData>;

    // Provided method
    fn add_builtin_account(&self, _name: &str, _program_id: &Pubkey) { ... }
}
Expand description

Runtime callbacks for transaction processing.

Required Methods§

Provided Methods§

Source

fn add_builtin_account(&self, _name: &str, _program_id: &Pubkey)

Implementors§