-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat: add some fork choice values to BeaconChain. #609
Conversation
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.
LGTM. I'll let @Arkenan have a final look.
#✅ dialyzer: @ Run dialyzer (static analysis tool). | ||
dialyzer: | ||
mix dialyzer |
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.
👍
3d0066f
to
a78db54
Compare
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.
LGTM
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.
LGTM! I suggested a minor change, but otherwise, feel free to merge.
Application.fetch_env!( | ||
:lambda_ethereum_consensus, | ||
__MODULE__ | ||
)[ | ||
:implementation | ||
] |
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.
Application.fetch_env!( | |
:lambda_ethereum_consensus, | |
__MODULE__ | |
)[ | |
:implementation | |
] | |
Application.fetch_env!( | |
:lambda_ethereum_consensus, | |
__MODULE__ | |
) | |
|> Map.fetch!(:implementation) |
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.
LGTM after re-review and offline discussion.
We don't want to have to calculate the new head everytime it is requested since it's expensive. Let's store a "cache" (better names welcomed) that gets updated every time we get a new block.
Closes #572