Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
removes backport merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadnouri committed Jan 3, 2022
1 parent d42666b commit 2cfccfc
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions core/src/cluster_info_vote_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,11 @@ use {
rpc_subscriptions::RpcSubscriptions,
},
solana_runtime::{
<<<<<<< HEAD
bank::Bank,
bank_forks::BankForks,
commitment::VOTE_THRESHOLD_SIZE,
epoch_stakes::{EpochAuthorizedVoters, EpochStakes},
epoch_stakes::EpochStakes,
vote_sender_types::{ReplayVoteReceiver, ReplayedVote},
=======
bank::Bank, bank_forks::BankForks, commitment::VOTE_THRESHOLD_SIZE,
epoch_stakes::EpochStakes, vote_sender_types::ReplayVoteReceiver,
>>>>>>> 69d71f8f8 (removes epoch_authorized_voters from VoteTracker (#22192))
},
solana_sdk::{
clock::{Slot, DEFAULT_MS_PER_SLOT, DEFAULT_TICKS_PER_SLOT},
Expand Down Expand Up @@ -693,42 +688,6 @@ impl ClusterInfoVoteListener {
}
}

<<<<<<< HEAD
fn filter_gossip_votes(
vote_tracker: &VoteTracker,
vote_pubkey: &Pubkey,
vote: &Vote,
gossip_tx: &Transaction,
) -> bool {
if vote.slots.is_empty() {
return false;
}
let last_vote_slot = vote.slots.last().unwrap();
// Votes from gossip need to be verified as they have not been
// verified by the replay pipeline. Determine the authorized voter
// based on the last vote slot. This will drop votes from authorized
// voters trying to make votes for slots earlier than the epoch for
// which they are authorized
let actual_authorized_voter =
vote_tracker.get_authorized_voter(vote_pubkey, *last_vote_slot);

if actual_authorized_voter.is_none() {
return false;
}

// Voting without the correct authorized pubkey, dump the vote
if !VoteTracker::vote_contains_authorized_voter(
gossip_tx,
&actual_authorized_voter.unwrap(),
) {
return false;
}

true
}

=======
>>>>>>> 69d71f8f8 (removes epoch_authorized_voters from VoteTracker (#22192))
fn filter_and_confirm_with_new_votes(
vote_tracker: &VoteTracker,
gossip_vote_txs: Vec<Transaction>,
Expand Down

0 comments on commit 2cfccfc

Please sign in to comment.