-
Notifications
You must be signed in to change notification settings - Fork 998
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
Fix some phase 0 typing #1731
Fix some phase 0 typing #1731
Conversation
for (k, h) in hash_cache: | ||
if x == k: | ||
return h | ||
def hash(x: bytes) -> bytes: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cache is not really used much at all anymore, since remerkleable does the hashing and structural caching. Maybe a few randao mixes get in the cache. Just removing it would not hurt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
fine if we remove hash
or keep it. If we remove it, let's sanity check runtime
@protolambda @djrtwo |
fine by me |
This PR fixes some typing issues found in #1707.
get_eth1_data
insetup.py
utils.hash_function
config.config_util
beacon-chain.md
No substantive change.