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

Part 2 of block chain service refactor - move process attestation #4672

Merged
merged 2 commits into from Jan 28, 2020

Conversation

terencechain
Copy link
Member

In current structure, fork choice is tightly coupled with block chain service, beacon-chain/blockchain/forkchoice inside beacon-chain/blockchain. There's important attestation processing logic in beacon-chain/blockchain/forkchoice which needs to be stripped out without fork choice and moved one folder up to beacon-chain/blockchain

Change list:

  • Copied process_attestation.go from beacon-chain/blockchain/forkchoice to beacon-chain/blockchain
  • Moved helper functions from process_attestation.go to process_attestation_helper.go
  • Copied process_attestation_test.go from beacon-chain/blockchain/forkchoice to beacon-chain/blockchain
  • Above changes are gated by feature flag --proto-array-forkchoice, it won't affect regular run time

@terencechain terencechain self-assigned this Jan 28, 2020
@terencechain terencechain added the Ready For Review A pull request ready for code review label Jan 28, 2020
@codecov
Copy link

codecov bot commented Jan 28, 2020

Codecov Report

Merging #4672 into master will increase coverage by 0.07%.
The diff coverage is 52.29%.

@@            Coverage Diff             @@
##           master    #4672      +/-   ##
==========================================
+ Coverage   39.21%   39.28%   +0.07%     
==========================================
  Files         198      200       +2     
  Lines       14356    14284      -72     
==========================================
- Hits         5629     5611      -18     
+ Misses       7759     7677      -82     
- Partials      968      996      +28

@terencechain terencechain merged commit e2be2a2 into master Jan 28, 2020
@delete-merged-branch delete-merged-branch bot deleted the deprecate-old-forkchoice-1 branch January 28, 2020 02:04
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