Post
Topic
Board Development & Technical Discussion
Merits 34 from 10 users
Re: Going backward in time
by
miner2251
on 13/10/2021, 04:42:29 UTC
⭐ Merited by ETFbitcoin (10) ,stwenhao (5) ,LoyceV (4) ,vjudeu (3) ,BlackHatCoiner (3) ,vapourminer (3) ,pooya87 (2) ,NotATether (2) ,n0nce (1) ,JayJuanGee (1)
It seems that Bitcoin Core is affected by 2038 year problem, I set my clock to 0x7fffffff and the client is halted with this assertion, because when reaching 0x80000000 it is treated as a negative value.
Code:
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Assertion failed!

Program: C:\Program Files\Bitcoin\bitcoin-qt.exe
File: util/time.cpp
Line: 97

Expression: now.count() > 0

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

(Press Retry to debug the application - JIT must be enabled)
---------------------------
Abort   Retry   Ignore   
---------------------------