pub fn notify_subscribers(&self, current_slot: u64, bank_forks: &Arc<RwLock<BankForks>>) {
        let pubkeys: Vec<_> = {
            let subs = self.account_subscriptions.read().unwrap();
            subs.keys().cloned().collect()
        };
        for pubkey in &pubkeys {
            self.check_account(pubkey, current_slot, bank_forks);
        }

        let programs: Vec<_> = {
            let subs = self.program_subscriptions.read().unwrap();
            subs.keys().cloned().collect()
        };
        for program_id in &programs {
            self.check_program(program_id, current_slot, bank_forks);
        }

        let signatures: Vec<_> = {
            let subs = self.signature_subscriptions.read().unwrap();
            subs.keys().cloned().collect()
        };
        for signature in &signatures {
            self.check_signature(signature, current_slot, bank_forks);
        }
    }
/// Notify subscribers of changes to any accounts or new signatures since
/// the bank's last checkpoint.
Notify subscribers of changes to any accounts or new signatures since
the bank's last checkpoint.
Notify subscribers of changes to any accounts or new signatures since the bank ' s last checkpoint .
pub fn notify_subscribers(&self, current_slot: u64, bank_forks: &Arc<RwLock<BankForks>>) {
        let pubkeys: Vec<_> = {
            let subs = self.account_subscriptions.read().unwrap();
            subs.keys().cloned().collect()
        };
        for pubkey in &pubkeys {
            self.check_account(pubkey, current_slot, bank_forks);
        }
        let programs: Vec<_> = {
            let subs = self.program_subscriptions.read().unwrap();
            subs.keys().cloned().collect()
        };
        for program_id in &programs {
            self.check_program(program_id, current_slot, bank_forks);
        }
        let signatures: Vec<_> = {
            let subs = self.signature_subscriptions.read().unwrap();
            subs.keys().cloned().collect()
        };
        for signature in &signatures {
            self.check_signature(signature, current_slot, bank_forks);
        }
    }
pub fn notify_subscribers ( & self , current_slot : u64 , bank_forks : & Arc < RwLock < BankForks > > ) { let pubkeys : Vec < _ > = { let subs = self . account_subscriptions . read ( ) . unwrap ( ) ; subs . keys ( ) . cloned ( ) . collect ( ) } ; for pubkey in & pubkeys { self . check_account ( pubkey , current_slot , bank_forks ) ; } let programs : Vec < _ > = { let subs = self . program_subscriptions . read ( ) . unwrap ( ) ; subs . keys ( ) . cloned ( ) . collect ( ) } ; for program_id in & programs { self . check_program ( program_id , current_slot , bank_forks ) ; } let signatures : Vec < _ > = { let subs = self . signature_subscriptions . read ( ) . unwrap ( ) ; subs . keys ( ) . cloned ( ) . collect ( ) } ; for signature in & signatures { self . check_signature ( signature , current_slot , bank_forks ) ; } }
Notify subscribers of changes to any accounts or new signatures since
the bank's last checkpoint.
Notify subscribers of changes to any accounts or new signatures since the bank ' s last checkpoint .
&self
current_slot
u64
bank_forks
&Arc<RwLock<BankForks>>
&self
current_slot
u64
bank_forks
&Arc<RwLock<BankForks>>