From 0935f02af01113b51024c84b50146956c1aa5897 Mon Sep 17 00:00:00 2001 From: "Mr. Spread" Date: Fri, 12 Sep 2014 01:31:06 +0400 Subject: [PATCH] Fix work reqirement for blocks after 43000 --- src/clientversion.h | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clientversion.h b/src/clientversion.h index 1c05f59..2f850d8 100644 --- a/src/clientversion.h +++ b/src/clientversion.h @@ -8,7 +8,7 @@ // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 9 -#define CLIENT_VERSION_REVISION 13 +#define CLIENT_VERSION_REVISION 14 #define CLIENT_VERSION_BUILD 0 // Set to true for release, false for prerelease or test build diff --git a/src/main.cpp b/src/main.cpp index e844b6f..a6f9a59 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1376,7 +1376,7 @@ unsigned int static GetNextWorkRequired(const CBlockIndex* pLastBlock, const CBl return bnProofOfWorkLimit.GetCompact(); if ((int)getSecondHardforkBlock() <= pLastBlock->nHeight && pLastBlock->nHeight <= (int)getSecondHardforkBlock() + nInterval) - return (bnProofOfWorkLimit*20).GetCompact(); + return (bnProofOfWorkLimit/20).GetCompact(); pLastBlock = pLastBlock->pprev; const CBlockIndex *pCurBlock = pLastBlock;