1

I am reading that Ethereum EVM run over 32bits systems

In base to this information: https://en.wikipedia.org/wiki/Year_2038_problem

Will the ethereum blockchain have a problem with the timestamp in 2038?

2
  • EVM don’t handle time, cause timestamps come from the outside and are usually stored in a 256bit unsigned interger. probably Someone with more knowledge can confirm that in an answer
    – Majd TL
    Commented Jun 7, 2021 at 20:09
  • 1
    I didn't say Ethereum is 32 bits system. I said it is a 32 bytes one, it is 8 times bigger!
    – Ismael
    Commented Jun 7, 2021 at 22:08

1 Answer 1

3

When you want to use an integer on a system where the size of the integer is larger than the system's word size, you explicity use a fixed-width integer.

This allows you to use, for example, 64-bit integers on 32-bit systems by explicitly using uint64 rather than uint, big.Int, etc. (depending on language).

To cut a long story short, there was a bug in the Geth client a couple of years ago, whereby Geth's timestamp implementation didn't match that of other clients (Parity?).

Issue #19372 was raised to ensure all Geth's timestamp use was set to use 64-bit integers (I believe in some cases it was using big.Int, which is platform dependent).

So the 2038 problem shouldn't be a problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.