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

Add HasBlock to verify parent check #5478

Merged
merged 4 commits into from
Apr 18, 2020
Merged

Conversation

terencechain
Copy link
Member

This fixes #5477

Added beaconDB.HasBlock to verifyBlkPreState check. This fixed an edge case that request parent blocks syncing at time epoch 0 encountered

The alternative work around is to always --force-clear-db when syncing and the chain is before epoch 1

@terencechain terencechain added Ready For Review A pull request ready for code review Priority: High High priority item labels Apr 17, 2020
@terencechain terencechain requested a review from a team as a code owner April 17, 2020 17:18
@terencechain terencechain self-assigned this Apr 17, 2020
0xKiwi
0xKiwi previously approved these changes Apr 17, 2020
rauljordan
rauljordan previously approved these changes Apr 17, 2020
@terencechain terencechain dismissed stale reviews from rauljordan and 0xKiwi via 64b25f7 April 17, 2020 17:27
@codecov
Copy link

codecov bot commented Apr 17, 2020

Codecov Report

Merging #5478 into master will increase coverage by 7.32%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5478      +/-   ##
==========================================
+ Coverage   16.00%   23.33%   +7.32%     
==========================================
  Files           7      234     +227     
  Lines         406    20060   +19654     
==========================================
+ Hits           65     4680    +4615     
- Misses        325    14482   +14157     
- Partials       16      898     +882     

@prylabs-bulldozer prylabs-bulldozer bot merged commit ce6ce5a into master Apr 18, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-verify-blk-pre-state branch April 18, 2020 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High High priority item Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could not process block, provided block root does not have block saved in the db
4 participants