alert system

-- version 0.3.11

git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@142 1a98c847-1fd6-4fd8-948a-caf3550aa51b
This commit is contained in:
s_nakamoto
2010-08-25 00:05:37 +00:00
parent 2201a0808e
commit 401926283a
8 changed files with 409 additions and 86 deletions

View File

@@ -19,8 +19,11 @@ class CScript;
class CDataStream;
class CAutoFile;
static const int VERSION = 310;
static const char* pszSubVer = ".5";
static const unsigned int MAX_SIZE = 0x02000000;
static const int VERSION = 311;
static const char* pszSubVer = ".0";
@@ -224,7 +227,7 @@ uint64 ReadCompactSize(Stream& is)
READDATA(is, nSize);
nSizeRet = nSize;
}
if (nSizeRet > (uint64)INT_MAX)
if (nSizeRet > (uint64)MAX_SIZE)
throw std::ios_base::failure("ReadCompactSize() : size too large");
return nSizeRet;
}