Skip to content

Commit

Permalink
SVM: remove check_account_access from callback (solana-labs#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec authored Apr 26, 2024
1 parent 9c2d186 commit 74d433a
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions svm/src/transaction_processing_callback.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use {
crate::transaction_error_metrics::TransactionErrorMetrics,
solana_program_runtime::loaded_programs::ProgramCacheMatchCriteria,
solana_sdk::{
account::AccountSharedData, feature_set::FeatureSet, hash::Hash, message::SanitizedMessage,
pubkey::Pubkey, rent_collector::RentCollector, transaction,
account::AccountSharedData, feature_set::FeatureSet, hash::Hash, pubkey::Pubkey,
rent_collector::RentCollector,
},
std::sync::Arc,
};
Expand All @@ -20,16 +19,6 @@ pub trait TransactionProcessingCallback {

fn get_feature_set(&self) -> Arc<FeatureSet>;

fn check_account_access(
&self,
_message: &SanitizedMessage,
_account_index: usize,
_account: &AccountSharedData,
_error_counters: &mut TransactionErrorMetrics,
) -> transaction::Result<()> {
Ok(())
}

fn get_program_match_criteria(&self, _program: &Pubkey) -> ProgramCacheMatchCriteria {
ProgramCacheMatchCriteria::NoCriteria
}
Expand Down

0 comments on commit 74d433a

Please sign in to comment.