X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fuint256.h;h=783e7069e9c86c1840e2596e7af0ec3c85131798;hb=5fee401fe14aa6459428a26a82f764db70a6a0b9;hp=caf6fa118bdc04e56127abb9bb2b56cff732e5f4;hpb=8c12851ed497797684588e09637d80a5abd5725e;p=novacoin.git diff --git a/src/uint256.h b/src/uint256.h index caf6fa1..783e706 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -348,6 +348,10 @@ public: return sizeof(pn); } + uint64 Get64(int n=0) const + { + return pn[2*n] | (uint64)pn[2*n+1] << 32; + } unsigned int GetSerializeSize(int nType=0, int nVersion=PROTOCOL_VERSION) const {