remove mining_pool from stake_state (#4804)

This commit is contained in:
Rob Walker
2019-06-24 16:01:02 -07:00
committed by GitHub
parent 3f8ff23125
commit 70f93cc126
2 changed files with 3 additions and 23 deletions

View File

@ -128,14 +128,6 @@ impl Stakes {
&self.vote_accounts
}
pub fn mining_pools(&self) -> impl Iterator<Item = (&Pubkey, &Account)> {
self.stake_accounts
.iter()
.filter(|(_key, account)| match StakeState::from(account) {
Some(StakeState::MiningPool { .. }) => true,
_ => false,
})
}
pub fn rewards_pools(&self) -> impl Iterator<Item = (&Pubkey, &Account)> {
self.stake_accounts
.iter()