X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fuint256.h;fp=src%2Fuint256.h;h=bf3c55bccb88bcb671f8fde0ac8782a28a2b948f;hb=6b6aaa1698838278a547f16a15e635bd58ec867d;hp=3524580532d6bc8ed270ad3b7b3e1673aa64fb31;hpb=ccd65d426156c3d5b7a8f1123210decd1f06fe42;p=novacoin.git diff --git a/src/uint256.h b/src/uint256.h index 3524580..bf3c55b 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -10,8 +10,6 @@ #include #include -#include "version.h" - typedef long long int64; typedef unsigned long long uint64; @@ -355,19 +353,22 @@ public: return pn[2*n] | (uint64)pn[2*n+1] << 32; } - unsigned int GetSerializeSize(int nType=0, int nVersion=PROTOCOL_VERSION) const +// unsigned int GetSerializeSize(int nType=0, int nVersion=PROTOCOL_VERSION) const + unsigned int GetSerializeSize(int nType, int nVersion) const { return sizeof(pn); } template - void Serialize(Stream& s, int nType=0, int nVersion=PROTOCOL_VERSION) const +// void Serialize(Stream& s, int nType=0, int nVersion=PROTOCOL_VERSION) const + void Serialize(Stream& s, int nType, int nVersion) const { s.write((char*)pn, sizeof(pn)); } template - void Unserialize(Stream& s, int nType=0, int nVersion=PROTOCOL_VERSION) +// void Unserialize(Stream& s, int nType=0, int nVersion=PROTOCOL_VERSION) + void Unserialize(Stream& s, int nType, int nVersion) { s.read((char*)pn, sizeof(pn)); }