ClusterInfoVoteListener send only missing votes to BankingStage (#20873)
This commit is contained in:
@ -34,6 +34,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 {
|
||||
|
@ -32,6 +32,11 @@ impl Signature {
|
||||
Self(GenericArray::clone_from_slice(signature_slice))
|
||||
}
|
||||
|
||||
pub fn new_unique() -> Self {
|
||||
let random_bytes: Vec<u8> = (0..64).map(|_| rand::random::<u8>()).collect();
|
||||
Self::new(&random_bytes)
|
||||
}
|
||||
|
||||
pub(self) fn verify_verbose(
|
||||
&self,
|
||||
pubkey_bytes: &[u8],
|
||||
|
Reference in New Issue
Block a user