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

Don't attempt to refresh votes on non voting validators #32315

Merged
merged 1 commit into from
Jul 1, 2023

Conversation

AshwinSekar
Copy link
Contributor

@AshwinSekar AshwinSekar commented Jun 28, 2023

Problem

Non voting validators or validators with unstaked identities in hotswap setups will never generate a tower blockhash, although they will continue adding votes to the tower.
The default blockhash is expired, so this will prompt these validators to attempt to refresh their vote. Although they can't vote anyway this will print an extra WARN cluttering the log.

Summary of Changes

Return early if blockhash is default.

Fixes #

@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #32315 (aeb451b) into master (b722ce4) will decrease coverage by 0.1%.
The diff coverage is 92.0%.

@@            Coverage Diff            @@
##           master   #32315     +/-   ##
=========================================
- Coverage    82.1%    82.0%   -0.1%     
=========================================
  Files         773      773             
  Lines      209755   209765     +10     
=========================================
- Hits       172225   172208     -17     
- Misses      37530    37557     +27     

@AshwinSekar AshwinSekar marked this pull request as ready for review June 28, 2023 19:45
@AshwinSekar AshwinSekar added v1.14 v1.16 PRs that should be backported to v1.16 labels Jun 28, 2023
core/src/replay_stage.rs Outdated Show resolved Hide resolved
core/src/replay_stage.rs Outdated Show resolved Hide resolved
@carllin
Copy link
Contributor

carllin commented Jul 1, 2023

good catch!

Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

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

LGTM

@AshwinSekar AshwinSekar merged commit e1576b5 into solana-labs:master Jul 1, 2023
mergify bot pushed a commit that referenced this pull request Jul 1, 2023
(cherry picked from commit e1576b5)

# Conflicts:
#	core/src/consensus/tower1_14_11.rs
#	core/src/replay_stage.rs
mergify bot pushed a commit that referenced this pull request Jul 1, 2023
(cherry picked from commit e1576b5)

# Conflicts:
#	core/src/replay_stage.rs
AshwinSekar added a commit that referenced this pull request Jul 7, 2023
(cherry picked from commit e1576b5)

# Conflicts:
#	core/src/replay_stage.rs
AshwinSekar added a commit that referenced this pull request Jul 7, 2023
(cherry picked from commit e1576b5)

# Conflicts:
#	core/src/replay_stage.rs
AshwinSekar added a commit that referenced this pull request Jul 7, 2023
(cherry picked from commit e1576b5)

# Conflicts:
#	core/src/consensus/tower1_14_11.rs
#	core/src/replay_stage.rs
AshwinSekar added a commit that referenced this pull request Jul 7, 2023
(cherry picked from commit e1576b5)

# Conflicts:
#	core/src/consensus/tower1_14_11.rs
#	core/src/replay_stage.rs
AshwinSekar added a commit that referenced this pull request Jul 7, 2023
(cherry picked from commit e1576b5)

# Conflicts:
#	core/src/consensus/tower1_14_11.rs
#	core/src/replay_stage.rs
mergify bot added a commit that referenced this pull request Jul 7, 2023
…ort of #32315) (#32356)

Don't attempt to refresh votes on non voting validators (#32315)

(cherry picked from commit e1576b5)

# Conflicts:
#	core/src/replay_stage.rs

Co-authored-by: Ashwin Sekar <ashwin@solana.com>
AshwinSekar added a commit that referenced this pull request Jul 8, 2023
…ort of #32315) (#32355)

Don't attempt to refresh votes on non voting validators (#32315)

(cherry picked from commit e1576b5)

# Conflicts:
#	core/src/consensus/tower1_14_11.rs
#	core/src/replay_stage.rs

Co-authored-by: Ashwin Sekar <ashwin@solana.com>
Co-authored-by: Will Hickey <will.hickey@solana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.16 PRs that should be backported to v1.16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants