X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmain.h;h=2384c436b55c1d7fd843f77e1d136045ba6db855;hb=dbb5ff777ee200bbe90cf72196bf7a842bf7665c;hp=bc79d8756249312957b6a32a8d3f06d537bcd2cd;hpb=16e1262471dba899f3e9251b485abec219aec844;p=novacoin.git diff --git a/src/main.h b/src/main.h index bc79d87..2384c43 100644 --- a/src/main.h +++ b/src/main.h @@ -39,6 +39,7 @@ static const int64 MIN_TXOUT_AMOUNT = MIN_TX_FEE; static const unsigned int STAKE_SWITCH_TIME = 1371686400; // 20 Jun 2013 00:00:00 static const unsigned int TARGETS_SWITCH_TIME = 1374278400; // 20 Jul 2013 00:00:00 static const unsigned int LOCKS_SWITCH_TIME = 1376956800; // 20 Aug 2013 00:00:00 +static const unsigned int CHAINCHECKS_SWITCH_TIME = 1379635200; // 20 Sep 2013 00:00:00 inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); } // Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timestamp. @@ -1241,14 +1242,7 @@ public: return (int64)nTime; } - CBigNum GetBlockTrust() const - { - CBigNum bnTarget; - bnTarget.SetCompact(nBits); - if (bnTarget <= 0) - return 0; - return (IsProofOfStake()? (CBigNum(1)<<256) / (bnTarget+1) : 1); - } + CBigNum GetBlockTrust() const; bool IsInMainChain() const {