Revert "Delete old protocol version constants and simplify code that used them."

This reverts commit 5a49c929dd.
This commit is contained in:
Sean Bowe
2017-06-23 18:19:25 -06:00
parent 9ad9a25eff
commit 15a9937654
4 changed files with 56 additions and 21 deletions

View File

@@ -103,7 +103,8 @@ public:
Init();
if (nType & SER_DISK)
READWRITE(nVersion);
if ((nType & SER_DISK) || !(nType & SER_GETHASH))
if ((nType & SER_DISK) ||
(nVersion >= CADDR_TIME_VERSION && !(nType & SER_GETHASH)))
READWRITE(nTime);
READWRITE(nServices);
READWRITE(*(CService*)this);