Cleanup staking utils to divide functionality between delegate and normal node utitliites. Also replaces vote_states() with more generalized vote_accounts() in Bank. (#3070)
This commit is contained in:
@@ -877,9 +877,9 @@ impl ClusterInfo {
|
||||
loop {
|
||||
let start = timestamp();
|
||||
let stakes: HashMap<_, _> = match bank_forks {
|
||||
Some(ref bank_forks) => {
|
||||
staking_utils::node_stakes(&bank_forks.read().unwrap().working_bank())
|
||||
}
|
||||
Some(ref bank_forks) => staking_utils::delegated_stakes(
|
||||
&bank_forks.read().unwrap().working_bank(),
|
||||
),
|
||||
None => HashMap::new(),
|
||||
};
|
||||
let _ = Self::run_gossip(&obj, &stakes, &blob_sender);
|
||||
|
Reference in New Issue
Block a user