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

Undefined: block timestamp validation logic #458

Open
whyrusleeping opened this issue Aug 27, 2019 · 3 comments
Open

Undefined: block timestamp validation logic #458

whyrusleeping opened this issue Aug 27, 2019 · 3 comments
Assignees

Comments

@whyrusleeping
Copy link
Member

whyrusleeping commented Aug 27, 2019

Its not clear how to validate a timestamp on a block header. The spec says it must be at least one block time past the previous block, and 'not in the future'.

I think those rules are likely incorrect, as clock skew would likely cause miners to drop a lot of blocks.

@sternhenri sternhenri self-assigned this Aug 27, 2019
@anorth
Copy link
Member

anorth commented Aug 27, 2019

There's a ALLOWABLE_CLOCK_DRIFT in https://github.com/filecoin-project/specs/blob/master/mining.md#block-validation, but IMO the logic there should be expressed only once, in prose, in https://github.com/filecoin-project/specs/blob/master/validation.md (which I think is where you were looking)

@sternhenri
Copy link
Contributor

sternhenri commented Aug 27, 2019 via email

@pooja pooja mentioned this issue Aug 27, 2019
22 tasks
@pooja pooja removed the mining label Sep 12, 2019
@ZenGround0 ZenGround0 mentioned this issue Dec 3, 2019
3 tasks
@ZenGround0
Copy link
Contributor

@whyrusleeping should be closing this out in #697, will post a link once merged.

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

No branches or pull requests

7 participants