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

Move IsCanonical implementation to forkchoice package #7602

Merged
merged 11 commits into from Oct 23, 2020

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Oct 22, 2020

Canonical blocks mapping was updated and maintained in blockchain pkg, but canonical calculation was updated in forkchoice pkg. This is a disparity and as a result more cpu compute got used due to duplication efforts.

This PR moves the update and maintenance of canonical mapping to forkchoice pkg. As a result less compute compute gets used due to more cleanly updates.

Before:
Screen Shot 2020-10-21 at 8 34 00 PM

After:
Screen Shot 2020-10-22 at 2 40 04 PM

@terencechain terencechain added the Ready For Review A pull request ready for code review label Oct 22, 2020
@terencechain terencechain marked this pull request as ready for review October 22, 2020 21:40
@terencechain terencechain requested a review from a team as a code owner October 22, 2020 21:40
@codecov
Copy link

codecov bot commented Oct 23, 2020

Codecov Report

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

@@            Coverage Diff             @@
##           master    #7602      +/-   ##
==========================================
+ Coverage   62.11%   62.23%   +0.12%     
==========================================
  Files         422      422              
  Lines       30015    30136     +121     
==========================================
+ Hits        18644    18756     +112     
- Misses       8428     8431       +3     
- Partials     2943     2949       +6     

@prylabs-bulldozer prylabs-bulldozer bot merged commit e07a12e into master Oct 23, 2020
@delete-merged-branch delete-merged-branch bot deleted the forkchoice-is-canonical branch October 23, 2020 01:32
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