* ClusterInfoVoteListener send only missing votes to BankingStage (#20873)
(cherry picked from commit b30c94ce55
)
# Conflicts:
# core/src/cluster_info_vote_listener.rs
# core/src/verified_vote_packets.rs
# gossip/src/cluster_info.rs
# local-cluster/tests/local_cluster.rs
# runtime/src/bank.rs
* Resolve conflicts
* Remove Select
* Fixup tests
Co-authored-by: carllin <carl@solana.com>
This commit is contained in:
@@ -36,6 +36,9 @@ impl SlotHashes {
|
||||
slot_hashes.sort_by(|(a, _), (b, _)| b.cmp(a));
|
||||
Self(slot_hashes)
|
||||
}
|
||||
pub fn slot_hashes(&self) -> &[SlotHash] {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl FromIterator<(Slot, Hash)> for SlotHashes {
|
||||
|
Reference in New Issue
Block a user