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

Revert Usage of ssz.TreeHash Across Repo #1711

Merged
merged 3 commits into from
Feb 26, 2019
Merged

Revert Usage of ssz.TreeHash Across Repo #1711

merged 3 commits into from
Feb 26, 2019

Conversation

rauljordan
Copy link
Contributor

Part of #1565


Description

Write why you are making the changes in this pull request

Given our monolithic state decision for our testnet in addition to not having an implemented caching layer for tree hashing, tree hashing becomes an unnecessary bottleneck in our beacon chain processing, increasing the time to process blocks and fetch state by over 10 times.

Write a summary of the changes you are making

This PR simply replaces it with hashutil.HashBeaconBlock which reverts back to the old hash function we've been using instead of ssz.TreeHash.

@rauljordan rauljordan self-assigned this Feb 26, 2019
@rauljordan rauljordan added Enhancement New feature or request Ready For Review Priority: High High priority item labels Feb 26, 2019
@rauljordan rauljordan modified the milestones: Diamond, Sapphire Feb 26, 2019
@codecov
Copy link

codecov bot commented Feb 26, 2019

Codecov Report

Merging #1711 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #1711   +/-   ##
======================================
  Coverage    74.2%   74.2%           
======================================
  Files         101     101           
  Lines        7884    7884           
======================================
  Hits         5850    5850           
  Misses       1526    1526           
  Partials      508     508

Copy link
Member

@nisdas nisdas left a comment

Choose a reason for hiding this comment

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

LGTM

@rauljordan rauljordan merged commit 20803b4 into master Feb 26, 2019
@rauljordan rauljordan deleted the nossz branch February 26, 2019 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Priority: High High priority item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants