X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmain.h;h=c9e3fd5a0ce68a3ac087c083e12738e6cc405c48;hb=9d14e64825d95061ea0857267646dfcb3d62e07a;hp=b4187098131bfa437879c9a3b73177f0c74d2382;hpb=0254a08409f54ac2b37fecb63d9867748823cde3;p=novacoin.git diff --git a/src/main.h b/src/main.h index b418709..c9e3fd5 100644 --- a/src/main.h +++ b/src/main.h @@ -14,6 +14,7 @@ #include "script.h" #include "scrypt.h" +#include #include #include @@ -42,7 +43,7 @@ static const unsigned int MAX_INV_SZ = 50000; static const int64_t MIN_TX_FEE = CENT/10; static const int64_t MIN_RELAY_TX_FEE = CENT/50; -static const int64_t MAX_MONEY = 2000000000 * COIN; +static const int64_t MAX_MONEY = std::numeric_limits::max(); static const int64_t MAX_MINT_PROOF_OF_WORK = 100 * COIN; static const int64_t MAX_MINT_PROOF_OF_STAKE = 1 * COIN; static const int64_t MIN_TXOUT_AMOUNT = CENT/100; @@ -962,7 +963,7 @@ public: if (nHeight >= 9689 || fTestNet) { // Take last bit of block hash as entropy bit - unsigned int nEntropyBit = ((GetHash().Get64()) & 1ULL); + unsigned int nEntropyBit = (GetHash().Get64()) & (uint64_t)1; if (fDebug && GetBoolArg("-printstakemodifier")) printf("GetStakeEntropyBit: nTime=%u hashBlock=%s nEntropyBit=%u\n", nTime, GetHash().ToString().c_str(), nEntropyBit); return nEntropyBit;