ClusterInfoVoteListener send only missing votes to BankingStage (backport #20873) (#22135)

* 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:
mergify[bot]
2021-12-30 06:38:49 +00:00
committed by GitHub
parent 24b0fc8927
commit 3b895104f3
10 changed files with 811 additions and 240 deletions

View File

@@ -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 {