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 vote for empty leader transmissions #3269

Merged
merged 1 commit into from
Mar 13, 2019

Conversation

carllin
Copy link
Contributor

@carllin carllin commented Mar 13, 2019

  • Don't vote for empty leader transmissions

  • Add is_delta flag to bank to detect empty leader transmissions

  • Plumb new is_votable flag through replay stage

  • Fix PohRecorder tests

  • Change is_delta to AtomicBool to avoid making Bank references mutable

  • Reset start slot in poh_recorder when working bank is cleared, so that connsecutive TPU's will start from the correct place

  • Use proper max tick height calculation

  • Test for not voting on empty transmission

  • tests for is_votable

Problem

Summary of Changes

Fixes #

@carllin carllin added the automerge Merge this Pull Request automatically once CI passes label Mar 13, 2019
@carllin carllin changed the title Don't vote for empty leader transmissions (#3248) Don't vote for empty leader transmissions Mar 13, 2019
* Don't vote for empty leader transmissions

* Add is_delta flag to bank to detect empty leader transmissions

* Plumb new is_votable flag through replay stage

* Fix PohRecorder tests

* Change is_delta to AtomicBool to avoid making Bank references mutable

* Reset start slot in poh_recorder when working bank is cleared, so that connsecutive TPU's will start from the correct place

* Use proper max tick height calculation

* Test for not voting on empty transmission

* tests for is_votable
@solana-grimes
Copy link
Contributor

😱 New commits were pushed while the automerge label was present.

@solana-grimes solana-grimes removed the automerge Merge this Pull Request automatically once CI passes label Mar 13, 2019
@carllin carllin added the automerge Merge this Pull Request automatically once CI passes label Mar 13, 2019
@carllin carllin closed this Mar 13, 2019
@carllin carllin reopened this Mar 13, 2019
@solana-grimes solana-grimes merged commit e666509 into solana-labs:v0.12 Mar 13, 2019
@codecov
Copy link

codecov bot commented Mar 13, 2019

Codecov Report

Merging #3269 into v0.12 will increase coverage by 5.6%.
The diff coverage is 92.5%.

@@           Coverage Diff           @@
##           v0.12   #3269     +/-   ##
=======================================
+ Coverage   74.9%   80.6%   +5.6%     
=======================================
  Files        131     131             
  Lines      21336   19900   -1436     
=======================================
+ Hits       15989   16041     +52     
+ Misses      5347    3859   -1488

1 similar comment
@codecov
Copy link

codecov bot commented Mar 13, 2019

Codecov Report

Merging #3269 into v0.12 will increase coverage by 5.6%.
The diff coverage is 92.5%.

@@           Coverage Diff           @@
##           v0.12   #3269     +/-   ##
=======================================
+ Coverage   74.9%   80.6%   +5.6%     
=======================================
  Files        131     131             
  Lines      21336   19900   -1436     
=======================================
+ Hits       15989   16041     +52     
+ Misses      5347    3859   -1488

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants