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

Fix unix time condition of an acceptable block #636

Merged
merged 1 commit into from
Feb 15, 2019
Merged

Conversation

hwwhww
Copy link
Contributor

@hwwhww hwwhww commented Feb 15, 2019

Issue

While GENESIS_SLOT type/number debase is on-going, the current spec is incorrect when checking if block.slot is acceptable since block.slot is a number greater than 2 ** 63 now.

Solution

Change

  • The node's Unix time is greater than or equal to state.genesis_time + block.slot * SECONDS_PER_SLOT.

to

  • The node's Unix time is greater than or equal to state.genesis_time + (block.slot - GENESIS_SLOT) * SECONDS_PER_SLOT.

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.

None yet

2 participants