3

Unix timestamps usually are stored as a 32 bit integer, either signed or unsigned which will overflow either in 2038 or 2106. How are timestamps currently stored in Monero's codebase and blocks?

1 Answer 1

2

Unix timestamps usually are stored as a 32 bit integer...

They're usually 64 bit (in anything written this century).

How are timestamps currently stored in Monero's codebase and blocks?

Unsigned 64 bit.

Is Monero affected by the year 2038 / 2106 problem?

Not the core daemon or wallets, but that doesn't mean some other wallet or service using Monero hasn't made a mistake and is using only 32 bits for timestamps.

1
  • 2
    Well, Bitcoin seems to be affected and uses 32 bit integers. But good to know, Monero doesn't and other wallets should have enough time to fix their issues if they didn't yet.
    – janowitz
    Commented Jul 11, 2023 at 13:47

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.