From f6123ec5244fa565ebeba660de94a47b28ef0105 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 28 Sep 2013 21:56:25 +0400 Subject: [PATCH] Revert GetBlockTrust changes --- src/main.cpp | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) 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(); -- 1.7.1