What happens if a participant's system clock is wrong? #624
Unanswered
peterbourgon
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hey Peter great to see you here asking questions about time :D If the state machine is using time.Now() anywhere, it's a bug. Do you have an instance of this? The canonical time for a block is provided in a BFT way by the validator set. It's included in the block header. Currently its the median timestamp of all the votes (see spec) but we are moving to a "proposer based timestamp model" (see spec) which provides some stronger guarantees but also introduces a new clock synchrony assumption into the consensus. For a recent bug involving time.Now() in the state machine, see here |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seems like timestamps, and particularly timeout timestamps, are derived from time.Now(), but that's not reliable — what would happen if a node's system clock is far in the future, or far in the past?
Beta Was this translation helpful? Give feedback.
All reactions