Expose stake delegations from bank for winner tool (#7354)
* Expose stake delegations from bank * cargo fmt * Add test
This commit is contained in:
@@ -178,6 +178,10 @@ impl Stakes {
|
||||
&self.vote_accounts
|
||||
}
|
||||
|
||||
pub fn stake_delegations(&self) -> &HashMap<Pubkey, Delegation> {
|
||||
&self.stake_delegations
|
||||
}
|
||||
|
||||
pub fn highest_staked_node(&self) -> Option<Pubkey> {
|
||||
self.vote_accounts
|
||||
.iter()
|
||||
|
Reference in New Issue
Block a user