Expose current stake accounts of a bank for use in cli tooling (#6184)
This commit is contained in:
@@ -167,10 +167,15 @@ impl Stakes {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn vote_accounts(&self) -> &HashMap<Pubkey, (u64, Account)> {
|
||||
&self.vote_accounts
|
||||
}
|
||||
|
||||
pub fn stake_accounts(&self) -> &HashMap<Pubkey, Account> {
|
||||
&self.stake_accounts
|
||||
}
|
||||
|
||||
pub fn rewards_pools(&self) -> impl Iterator<Item = (&Pubkey, &Account)> {
|
||||
self.stake_accounts
|
||||
.iter()
|
||||
|
Reference in New Issue
Block a user