From: alex Date: Sat, 28 Sep 2013 17:56:25 +0000 (+0400) Subject: Revert GetBlockTrust changes X-Git-Tag: v0.4.4.5~4 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=f6123ec5244fa565ebeba660de94a47b28ef0105 Revert GetBlockTrust changes --- diff --git a/src/main.cpp b/src/main.cpp index 19f7992..68190ad 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2294,6 +2294,12 @@ uint256 CBlockIndex::GetBlockTrust() const if (bnTarget <= 0) return 0; + /* Old protocol */ + if (!fTestNet && GetBlockTime() < CHAINCHECKS_SWITCH_TIME) + return (IsProofOfStake()? ((CBigNum(1)<<256) / (bnTarget+1)).getuint256() : 1); + + /* New protocol */ + // Calculate work amount for block uint256 nPoWTrust = (CBigNum(nPoWBase) / (bnTarget+1)).getuint256();