Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoranYi committed Feb 26, 2024
1 parent 865029b commit 8023d05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions svm/src/account_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use {
transaction_context::{IndexOfAccount, TransactionAccount},
},
solana_system_program::{get_system_account_kind, SystemAccountKind},
std::sync::RwLock,
std::{collections::HashMap, num::NonZeroUsize},
};

Expand All @@ -51,7 +52,7 @@ pub struct LoadedTransaction {
pub type TransactionLoadResult = (Result<LoadedTransaction>, Option<NonceFull>);
pub type TransactionCheckResult = (transaction::Result<()>, Option<NoncePartial>, Option<u64>);

pub fn load_accounts<CB: TransactionProcessingCallback>(
pub fn load_accounts<CB: TransactionProcessingCallback, AccountHash>(
callbacks: &CB,
txs: &[SanitizedTransaction],
lock_results: &[TransactionCheckResult],
Expand Down Expand Up @@ -123,7 +124,7 @@ pub fn load_accounts<CB: TransactionProcessingCallback>(
.collect()
}

fn load_transaction_accounts<CB: TransactionProcessingCallback>(
fn load_transaction_accounts<CB: TransactionProcessingCallback, AccountHash>(
callbacks: &CB,
tx: &SanitizedTransaction,
fee: u64,
Expand Down
6 changes: 5 additions & 1 deletion svm/src/transaction_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ impl<FG: ForkGraph> TransactionBatchProcessor<FG> {
}

#[allow(clippy::too_many_arguments)]
pub fn load_and_execute_sanitized_transactions<'a, CB: TransactionProcessingCallback>(
pub fn load_and_execute_sanitized_transactions<
'a,
CB: TransactionProcessingCallback,
AccountHash,
>(
&self,
callbacks: &CB,
sanitized_txs: &[SanitizedTransaction],
Expand Down

0 comments on commit 8023d05

Please sign in to comment.