aboutsummaryrefslogtreecommitdiff
path: root/serialize.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-08-19 22:43:19 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-08-19 22:43:19 +0000
commit05454818dc7ed92f577a1a1ef6798049f17a52e7 (patch)
tree7d35cf4f998a9ee1942db01b63caef657ee50f9b /serialize.h
parent44a0de1861a78a693ad3331f0f7b06003a78a9d7 (diff)
block index checking on load, extra redundant checks, misc refactoring
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@140 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'serialize.h')
-rw-r--r--serialize.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/serialize.h b/serialize.h
index 88c2e9ab23..260e849754 100644
--- a/serialize.h
+++ b/serialize.h
@@ -20,7 +20,7 @@ class CDataStream;
class CAutoFile;
static const int VERSION = 310;
-static const char* pszSubVer = ".3";
+static const char* pszSubVer = ".4";
@@ -81,6 +81,13 @@ enum
#define READWRITE(obj) (nSerSize += ::SerReadWrite(s, (obj), nType, nVersion, ser_action))
+#define READWRITEVER(obj) \
+ do { \
+ READWRITE((obj)); \
+ if ((obj) == 10300) \
+ (obj) = 300; \
+ } while (false)
+