pub fn vote_account_stakes_at_epoch(
    bank: &Bank,
    epoch_height: u64,
) -> Option<HashMap<Pubkey, u64>> {
    bank.epoch_vote_accounts(epoch_height).map(|accounts| {
        accounts
            .iter()
            .map(|(id, (stake, _))| (*id, *stake))
            .collect()
    })
}
/// At the specified epoch, collect the node account balance and vote states for nodes that
/// have non-zero balance in their corresponding staking accounts
At the specified epoch, collect the node account balance and vote states for nodes that
have non-zero balance in their corresponding staking accounts
At the specified epoch collect the node account balance and vote states for nodes that have non - zero balance in their corresponding staking accounts
pub fn vote_account_stakes_at_epoch(
    bank: &Bank,
    epoch_height: u64,
) -> Option<HashMap<Pubkey, u64>> {
    bank.epoch_vote_accounts(epoch_height).map(|accounts| {
        accounts
            .iter()
            .map(|(id, (stake, _))| (*id, *stake))
            .collect()
    })
}
pub fn vote_account_stakes_at_epoch ( bank : & Bank , epoch_height : u64 , ) -> Option < HashMap < Pubkey , u64 > > { bank . epoch_vote_accounts ( epoch_height ) . map ( | accounts | { accounts . iter ( ) . map ( | ( id , ( stake , _ ) ) | ( * id , * stake ) ) . collect ( ) } ) }
At the specified epoch, collect the node account balance and vote states for nodes that
have non-zero balance in their corresponding staking accounts
At the specified epoch collect the node account balance and vote states for nodes that have non - zero balance in their corresponding staking accounts
bank
&Bank
epoch_height
u64
bank
&Bank
epoch_height
u64