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

Fix underflow in resyncIfBehind #6274

Merged
merged 11 commits into from
Jun 15, 2020
Merged

Fix underflow in resyncIfBehind #6274

merged 11 commits into from
Jun 15, 2020

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Jun 15, 2020

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?
Fixes a potential underflow in resyncIfBehind
If the currentEpoch is 0, prevEpoch will hit underflow

@terencechain terencechain requested a review from a team as a code owner June 15, 2020 21:07
@terencechain terencechain self-assigned this Jun 15, 2020
@codecov
Copy link

codecov bot commented Jun 15, 2020

Codecov Report

Merging #6274 into master will decrease coverage by 0.22%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #6274      +/-   ##
==========================================
- Coverage   60.06%   59.83%   -0.23%     
==========================================
  Files         325      325              
  Lines       27777    27534     -243     
==========================================
- Hits        16683    16476     -207     
- Misses       8801     8808       +7     
+ Partials     2293     2250      -43     

Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

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

Please add regression test

@terencechain terencechain merged commit 4c143f4 into master Jun 15, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-underflow branch June 15, 2020 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants