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

Check HeadState First #4972

Merged
merged 1 commit into from Mar 1, 2020
Merged

Check HeadState First #4972

merged 1 commit into from Mar 1, 2020

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Mar 1, 2020

When processing an attestation or block, we retrieve the pre-state from the db. This PR makes sure that we check the head state first before retrieving from the db.

@nisdas nisdas added Ready For Review A pull request ready for code review Blocked Blocked by research or external factors and removed Blocked Blocked by research or external factors labels Mar 1, 2020
@nisdas
Copy link
Member Author

nisdas commented Mar 1, 2020

Don't Merge this in until it has been tested in runtime, this is mostly follows off #4853

@codecov
Copy link

codecov bot commented Mar 1, 2020

Codecov Report

Merging #4972 into master will increase coverage by 36.58%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master    #4972       +/-   ##
===========================================
+ Coverage    8.11%   44.70%   +36.58%     
===========================================
  Files         173      208       +35     
  Lines       12554    16049     +3495     
===========================================
+ Hits         1019     7175     +6156     
+ Misses      11380     7635     -3745     
- Partials      155     1239     +1084     

@nisdas nisdas mentioned this pull request Mar 1, 2020
Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

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

Nice!

@terencechain terencechain merged commit cd6e06f into master Mar 1, 2020
@delete-merged-branch delete-merged-branch bot deleted the checkHeadstate branch March 1, 2020 15:22
nisdas pushed a commit that referenced this pull request Mar 2, 2020
This reverts commit cd6e06f.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants