calculate_capitalization uses hash calculation (#17443)
* calculate_capitalization uses hash calculation * feedback * remove debugging code, clean up slot math
This commit is contained in:
committed by
GitHub
parent
2dc6969858
commit
d4cc975fe9
@@ -48,6 +48,10 @@ impl SlotCacheInner {
|
||||
);
|
||||
}
|
||||
|
||||
pub fn get_all_pubkeys(&self) -> Vec<Pubkey> {
|
||||
self.cache.iter().map(|item| *item.key()).collect()
|
||||
}
|
||||
|
||||
pub fn insert(
|
||||
&self,
|
||||
pubkey: &Pubkey,
|
||||
|
Reference in New Issue
Block a user