This repository was archived by the owner on Jan 22, 2025. It is now read-only.
checks for authorized voter early on in the vote-listener pipeline#22169
Merged
behzadnouri merged 1 commit intosolana-labs:masterfrom Dec 30, 2021
Merged
Conversation
28e6839 to
9a8d645
Compare
9a8d645 to
a39eaca
Compare
Before votes are verified that they are signed by the authorized voter, they might be dropped in verified-vote-packets code. If there are enough many spam votes from unauthorized voters, this may potentially drop valid votes but keep the false ones. https://github.com/solana-labs/solana/blob/57986f982/core/src/verified_vote_packets.rs#L165-L168
a39eaca to
e6deb59
Compare
Contributor
|
Now that we've moved the authorized voter check earlier, can we delete this later authorized voter check? solana/core/src/cluster_info_vote_listener.rs Lines 841 to 847 in e6deb59 |
Contributor
Author
yeah, I think we can remove that. |
Codecov Report
@@ Coverage Diff @@
## master #22169 +/- ##
=========================================
- Coverage 81.1% 81.1% -0.1%
=========================================
Files 521 521
Lines 146316 146340 +24
=========================================
+ Hits 118802 118810 +8
- Misses 27514 27530 +16 |
carllin
approved these changes
Dec 30, 2021
t-nelson
approved these changes
Dec 30, 2021
mergify Bot
pushed a commit
that referenced
this pull request
Dec 30, 2021
…22169) Before votes are verified that they are signed by the authorized voter, they might be dropped in verified-vote-packets code. If there are enough many spam votes from unauthorized voters, this may potentially drop valid votes but keep the false ones. https://github.com/solana-labs/solana/blob/57986f982/core/src/verified_vote_packets.rs#L165-L168 (cherry picked from commit c0c6038) # Conflicts: # core/src/cluster_info_vote_listener.rs
behzadnouri
added a commit
to behzadnouri/solana
that referenced
this pull request
Dec 30, 2021
solana-labs#22169 verifies authorized-voter early on in vote-listener; so VoteTracker no longer needs to maintain and check for epoch authorized voters.
behzadnouri
added a commit
to behzadnouri/solana
that referenced
this pull request
Dec 30, 2021
solana-labs#22169 verifies authorized-voter early on in vote-listener pipeline; and so VoteTracker no longer needs to maintain and check for epoch authorized voters.
mergify Bot
added a commit
that referenced
this pull request
Dec 30, 2021
…ackport #22169) (#22188) * checks for authorized voter early on in the vote-listener pipeline (#22169) Before votes are verified that they are signed by the authorized voter, they might be dropped in verified-vote-packets code. If there are enough many spam votes from unauthorized voters, this may potentially drop valid votes but keep the false ones. https://github.com/solana-labs/solana/blob/57986f982/core/src/verified_vote_packets.rs#L165-L168 (cherry picked from commit c0c6038) # Conflicts: # core/src/cluster_info_vote_listener.rs * removes backport merge conflicts Co-authored-by: behzad nouri <behzadnouri@gmail.com>
behzadnouri
added a commit
to behzadnouri/solana
that referenced
this pull request
Dec 30, 2021
solana-labs#22169 verifies authorized-voter early on in vote-listener pipeline; and so VoteTracker no longer needs to maintain and check for epoch authorized voters.
behzadnouri
added a commit
to behzadnouri/solana
that referenced
this pull request
Dec 30, 2021
solana-labs#22169 verifies authorized-voter early on in vote-listener pipeline; and so VoteTracker no longer needs to maintain and check for epoch authorized voters.
behzadnouri
added a commit
to behzadnouri/solana
that referenced
this pull request
Dec 31, 2021
solana-labs#22169 verifies authorized-voter early on in vote-listener pipeline; and so VoteTracker no longer needs to maintain and check for epoch authorized voters.
mergify Bot
pushed a commit
that referenced
this pull request
Dec 31, 2021
…22169) Before votes are verified that they are signed by the authorized voter, they might be dropped in verified-vote-packets code. If there are enough many spam votes from unauthorized voters, this may potentially drop valid votes but keep the false ones. https://github.com/solana-labs/solana/blob/57986f982/core/src/verified_vote_packets.rs#L165-L168 (cherry picked from commit c0c6038) # Conflicts: # core/src/cluster_info_vote_listener.rs
mergify Bot
added a commit
that referenced
this pull request
Dec 31, 2021
…ackport #22169) (#22206) * checks for authorized voter early on in the vote-listener pipeline (#22169) Before votes are verified that they are signed by the authorized voter, they might be dropped in verified-vote-packets code. If there are enough many spam votes from unauthorized voters, this may potentially drop valid votes but keep the false ones. https://github.com/solana-labs/solana/blob/57986f982/core/src/verified_vote_packets.rs#L165-L168 (cherry picked from commit c0c6038) # Conflicts: # core/src/cluster_info_vote_listener.rs * removes backport merge conflicts Co-authored-by: behzad nouri <behzadnouri@gmail.com>
behzadnouri
added a commit
to behzadnouri/solana
that referenced
this pull request
Dec 31, 2021
solana-labs#22169 verifies authorized-voter early on in vote-listener pipeline; and so VoteTracker no longer needs to maintain and check for epoch authorized voters.
behzadnouri
added a commit
that referenced
this pull request
Jan 3, 2022
#22169 verifies authorized-voter early on in vote-listener pipeline; and so VoteTracker no longer needs to maintain and check for epoch authorized voters.
mergify Bot
added a commit
that referenced
this pull request
Jan 4, 2022
…22248) * removes epoch_authorized_voters from VoteTracker (#22192) #22169 verifies authorized-voter early on in vote-listener pipeline; and so VoteTracker no longer needs to maintain and check for epoch authorized voters. (cherry picked from commit 69d71f8) # Conflicts: # core/src/cluster_info_vote_listener.rs * removes backport merge conflicts Co-authored-by: behzad nouri <behzadnouri@gmail.com>
mergify Bot
added a commit
that referenced
this pull request
Jan 4, 2022
…22250) * removes epoch_authorized_voters from VoteTracker (#22192) #22169 verifies authorized-voter early on in vote-listener pipeline; and so VoteTracker no longer needs to maintain and check for epoch authorized voters. (cherry picked from commit 69d71f8) # Conflicts: # core/src/cluster_info_vote_listener.rs * removes backport merge conflicts Co-authored-by: behzad nouri <behzadnouri@gmail.com>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Before votes are verified that they are signed by the authorized voter,
they might be dropped in verified-vote-packets code. If there are
enough many spam votes from unauthorized voters, this may potentially
drop valid votes but keep the false ones.
https://github.com/solana-labs/solana/blob/57986f982/core/src/verified_vote_packets.rs#L165-L168
Summary of Changes
Check for authorized voter early on in the vote-listener pipeline