Remove no-op TIME_INIT on deser

Assigning TIME_INIT to nTime was needed to fully re-initialize a dirty
object where the deserialization might skip nTime.
See https://github.com/bitcoin/bitcoin/pull/19020/files#r427620111

Now that the without-nTime logic is removed in commit
dbcb5742c4 and commit
e08770bed1, the logic here can be removed
as well.

Also, remove confusing and redundant preprocessor code.

Also, remove no longer needed version.h include, which was needed for
INIT_PROTO_VERSION.
This commit is contained in:
MarcoFalke
2022-04-07 14:34:01 +02:00
committed by MacroFake
parent 8779adbdda
commit fa243e9313
2 changed files with 2 additions and 7 deletions

View File

@@ -15,6 +15,7 @@
#include <streams.h>
#include <util/system.h>
#include <util/translation.h>
#include <version.h>
#include <atomic>
#include <cstdio>