fn filter_pending_transactions(
        bank: &Arc<Bank>,
        transactions: &[Transaction],
        transaction_indexes: &[usize],
        pending_indexes: &[usize],
    ) -> Vec<usize> {
        let filter = Self::prepare_filter_for_pending_transactions(transactions, pending_indexes);

        let mut error_counters = ErrorCounters::default();
        let result = bank.check_transactions(
            transactions,
            &filter,
            (MAX_RECENT_BLOCKHASHES - MAX_TRANSACTION_FORWARDING_DELAY) / 2,
            &mut error_counters,
        );

        Self::filter_valid_transaction_indexes(&result, transaction_indexes)
    }
// This function  filters pending transactions that are still valid
This function  filters pending transactions that are still valid
This function filters pending transactions that are still valid
fn filter_pending_transactions(
        bank: &Arc<Bank>,
        transactions: &[Transaction],
        transaction_indexes: &[usize],
        pending_indexes: &[usize],
    ) -> Vec<usize> {
        let filter = Self::prepare_filter_for_pending_transactions(transactions, pending_indexes);
        let mut error_counters = ErrorCounters::default();
        let result = bank.check_transactions(
            transactions,
            &filter,
            (MAX_RECENT_BLOCKHASHES - MAX_TRANSACTION_FORWARDING_DELAY) / 2,
            &mut error_counters,
        );
        Self::filter_valid_transaction_indexes(&result, transaction_indexes)
    }
fn filter_pending_transactions ( bank : & Arc < Bank > , transactions : & [ Transaction ] , transaction_indexes : & [ usize ] , pending_indexes : & [ usize ] , ) -> Vec < usize > { let filter = Self :: prepare_filter_for_pending_transactions ( transactions , pending_indexes ) ; let mut error_counters = ErrorCounters :: default ( ) ; let result = bank . check_transactions ( transactions , & filter , ( MAX_RECENT_BLOCKHASHES - MAX_TRANSACTION_FORWARDING_DELAY ) / 2 , & mut error_counters , ) ; Self :: filter_valid_transaction_indexes ( & result , transaction_indexes ) }
This function  filters pending transactions that are still valid
This function filters pending transactions that are still valid
bank
&Arc<Bank>
transactions
&[Transaction]
transaction_indexes
&[usize]
pending_indexes
&[usize]
bank
&Arc<Bank>
transactions
&[Transaction]
transaction_indexes
&[usize]
pending_indexes
&[usize]