You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The boards realm uses time.Now() for the displayed post time. This should match the real time when the post transaction is processed.
Actual behaviour
The value of time.Now() does not match the real time, as shown below. It looks like time.Now returns the time since the node started multiplied by some factor (about 2.2). If I post immediately after starting gnodev, time.Now() is correct. If I post 5 minutes after start, time.Now() is 11 minutes after start. If I post 10 minutes after start, time.Now() is 23 minutes after start. If I post 20 minutes after start, time.Now() is 44 minutes after start, etc. (This only happens in gnodev. If I run gnoland then the timestamps are correct.)
The text was updated successfully, but these errors were encountered:
fix#1507
It appears that using `TestConsensusConfig` as the default consensus
configuration in gnodev causes time drift. This can be fixed by setting
`cfg.Consensus.SkipTimeoutCommit` to `false`. However, I'm not certain
about the exact reason why this setting actually corrects the time
drifting issue.
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
fixgnolang#1507
It appears that using `TestConsensusConfig` as the default consensus
configuration in gnodev causes time drift. This can be fixed by setting
`cfg.Consensus.SkipTimeoutCommit` to `false`. However, I'm not certain
about the exact reason why this setting actually corrects the time
drifting issue.
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
gnodev
Description
While using gnodev,
time.Now()
seems to drift as described below.Your environment
Steps to reproduce
CreateThread
as follows:CreateThread
again.CreateThread
again.Expected behaviour
The boards realm uses
time.Now()
for the displayed post time. This should match the real time when the post transaction is processed.Actual behaviour
The value of
time.Now()
does not match the real time, as shown below. It looks like time.Now returns the time since the node started multiplied by some factor (about 2.2). If I post immediately after starting gnodev,time.Now()
is correct. If I post 5 minutes after start,time.Now()
is 11 minutes after start. If I post 10 minutes after start,time.Now()
is 23 minutes after start. If I post 20 minutes after start,time.Now()
is 44 minutes after start, etc. (This only happens in gnodev. If I run gnoland then the timestamps are correct.)The text was updated successfully, but these errors were encountered: