Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: only submit extensions to proposer #1

Closed
wants to merge 13 commits into from

Conversation

aljo242
Copy link
Collaborator

@aljo242 aljo242 commented Nov 15, 2023

No description provided.

Copy link
Collaborator

@MaghnusM MaghnusM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good tbh

Copy link

@nivasan1 nivasan1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question

consensus/reactor.go Outdated Show resolved Hide resolved
@@ -733,6 +736,12 @@ func (conR *Reactor) gossipVotesRoutine(peer p2p.Peer, ps *PeerState) {
// Simple hack to throttle logs upon sleep.
sleeping := 0

consAddrHexBz, err := hex.DecodeString(string(peer.ID()))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: would move logic to a helper

@@ -2175,7 +2175,12 @@ func (cs *State) addVote(vote *types.Vote, peerID p2p.ID) (added bool, err error
// Verify VoteExtension if precommit and not nil
// https://github.com/tendermint/tendermint/issues/8487
if vote.Type == cmtproto.PrecommitType && !vote.BlockID.IsZero() &&
!bytes.Equal(vote.ValidatorAddress, myAddr) { // Skip the VerifyVoteExtension call if the vote was issued by this validator.
!bytes.Equal(vote.ValidatorAddress, myAddr) &&
bytes.Equal(cs.state.NextValidators.Proposer.Address, myAddr) &&
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be Nextvalidators right?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

Copy link

github-actions bot commented Dec 1, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Dec 1, 2023
@github-actions github-actions bot closed this Dec 6, 2023
nivasan1 pushed a commit that referenced this pull request Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants