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

Cleanup on block performance #8184

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Cleanup on block performance #8184

merged 2 commits into from
Apr 10, 2024

Conversation

tbenr
Copy link
Contributor

@tbenr tbenr commented Apr 10, 2024

Noticed I introduced some unneeded noise on the slot time calculation.

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Copy link
Contributor

@mehdi-aouadi mehdi-aouadi left a comment

Choose a reason for hiding this comment

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

LGTM


public UInt64 computeTimeAtSlot(final UInt64 genesisTime, final UInt64 slot) {
return atSlot(slot).miscHelpers().computeTimeAtSlot(genesisTime, slot);
public UInt64 computeTimeAtSlot(BeaconState state, UInt64 slot) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing finals

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i just reverted the changes.. adding them back

@tbenr tbenr enabled auto-merge (squash) April 10, 2024 10:37
@tbenr tbenr merged commit 2c2249a into Consensys:master Apr 10, 2024
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants