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

Fix skipping own leader slots #8533

Merged
merged 4 commits into from
Feb 29, 2020

Conversation

carllin
Copy link
Contributor

@carllin carllin commented Feb 28, 2020

Problem

Leaders will skip their own consecutive slots because the check received_any_previous_leader_data will return true even if the slot belongs to the leader

Summary of Changes

Check if the previous slot is the validator's own before making the received_any_previous_leader_data check

Fixes #

@carllin carllin requested a review from pgarg66 February 28, 2020 23:48
@mvines
Copy link
Contributor

mvines commented Feb 28, 2020

test? 😬
btw: I don't think we can expect review from @pgarg66, probably best to always add somebody else

@codecov
Copy link

codecov bot commented Feb 29, 2020

Codecov Report

Merging #8533 into master will decrease coverage by <.1%.
The diff coverage is 91.6%.

@@           Coverage Diff            @@
##           master   #8533     +/-   ##
========================================
- Coverage    80.1%   80.1%   -0.1%     
========================================
  Files         256     256             
  Lines       55279   55289     +10     
========================================
+ Hits        44297   44299      +2     
- Misses      10982   10990      +8

mvines
mvines previously approved these changes Feb 29, 2020
carllin and others added 3 commits February 28, 2020 23:03
@mergify mergify bot dismissed mvines’s stale review February 29, 2020 07:04

Pull request has been modified.

@carllin carllin added the automerge Merge this Pull Request automatically once CI passes label Feb 29, 2020
@solana-grimes solana-grimes merged commit 6a5a638 into solana-labs:master Feb 29, 2020
mergify bot pushed a commit that referenced this pull request Feb 29, 2020
automerge

(cherry picked from commit 6a5a638)
mergify bot pushed a commit that referenced this pull request Feb 29, 2020
automerge

(cherry picked from commit 6a5a638)
solana-grimes pushed a commit that referenced this pull request Feb 29, 2020
solana-grimes pushed a commit that referenced this pull request Feb 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants