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

Intermittent Time Decrement Issue in Geth 1.12 Smart Contract Calls #30892

Open
AntonGulak opened this issue Dec 10, 2024 · 1 comment
Open

Comments

@AntonGulak
Copy link

We’re observing a rare and intermittent issue in Geth 1.12 where consecutive calls to two functions—setTime() (which sets time = now) followed by getTime() (which returns the stored time)—occasionally result in inconsistent values. Specifically, after setting time and subsequently retrieving it, the second getTime() call sometimes returns a value exactly one unit lower than the previous call. For example, the first retrieval might return 0xaab, while the next consecutive retrieval returns 0xaaa (exactly -1), despite blocks being mined at 5-second intervals and the calls being strictly sequential. This anomaly has occurred only a few times over several years of continuous node operation, and the root cause remains unknown.

Has anyone experienced a similar issue or can shed light on why this might be happening?

@MariusVanDerWijden
Copy link
Member

Interesting, do you have some code for us to try to repro it better? On what kind of network are you running? Maybe in the case of a reorg where the miner mines a block a second earlier or with a bit of clock skew this might happen.

Sorry for replying so late to this, but it would be really interesting to understand your setup!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants