Add VoteTracker for tracking cluster's votes in gossip (#8327)

Track votes by slot in cluster_vote_listener
This commit is contained in:
carllin
2020-03-09 22:03:09 -07:00
committed by GitHub
parent ae8badb141
commit 9872430bd2
8 changed files with 1003 additions and 23 deletions

View File

@ -260,6 +260,10 @@ impl Message {
- self.header.num_readonly_unsigned_accounts as usize)
}
pub fn is_signer(&self, i: usize) -> bool {
i < self.header.num_required_signatures as usize
}
pub fn get_account_keys_by_lock_type(&self) -> (Vec<&Pubkey>, Vec<&Pubkey>) {
let mut writable_keys = vec![];
let mut readonly_keys = vec![];