From 8023d056c5b986df47b4204292f7eb30d78973f4 Mon Sep 17 00:00:00 2001 From: HaoranYi Date: Mon, 26 Feb 2024 23:28:20 +0000 Subject: [PATCH] fix build --- svm/src/account_loader.rs | 5 +++-- svm/src/transaction_processor.rs | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/svm/src/account_loader.rs b/svm/src/account_loader.rs index eb594bd1522a5e..6dbdd3c5125142 100644 --- a/svm/src/account_loader.rs +++ b/svm/src/account_loader.rs @@ -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}, }; @@ -51,7 +52,7 @@ pub struct LoadedTransaction { pub type TransactionLoadResult = (Result, Option); pub type TransactionCheckResult = (transaction::Result<()>, Option, Option); -pub fn load_accounts( +pub fn load_accounts( callbacks: &CB, txs: &[SanitizedTransaction], lock_results: &[TransactionCheckResult], @@ -123,7 +124,7 @@ pub fn load_accounts( .collect() } -fn load_transaction_accounts( +fn load_transaction_accounts( callbacks: &CB, tx: &SanitizedTransaction, fee: u64, diff --git a/svm/src/transaction_processor.rs b/svm/src/transaction_processor.rs index 2e6a903dcbaf9e..c40b025e94c7cb 100644 --- a/svm/src/transaction_processor.rs +++ b/svm/src/transaction_processor.rs @@ -177,7 +177,11 @@ impl TransactionBatchProcessor { } #[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],