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
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user