forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SVM: drop
get_program_match_critera
from callbacks
- Loading branch information
1 parent
334b73a
commit 7a8d3a9
Showing
3 changed files
with
3 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
use { | ||
solana_program_runtime::loaded_programs::ProgramCacheMatchCriteria, | ||
solana_sdk::{account::AccountSharedData, pubkey::Pubkey}, | ||
}; | ||
use solana_sdk::{account::AccountSharedData, pubkey::Pubkey}; | ||
|
||
/// Runtime callbacks for transaction processing. | ||
pub trait TransactionProcessingCallback { | ||
fn account_matches_owners(&self, account: &Pubkey, owners: &[Pubkey]) -> Option<usize>; | ||
|
||
fn get_account_shared_data(&self, pubkey: &Pubkey) -> Option<AccountSharedData>; | ||
|
||
fn get_program_match_criteria(&self, _program: &Pubkey) -> ProgramCacheMatchCriteria { | ||
ProgramCacheMatchCriteria::NoCriteria | ||
} | ||
|
||
fn add_builtin_account(&self, _name: &str, _program_id: &Pubkey) {} | ||
} |