Skip to content

Commit

Permalink
Fix work reqirement for blocks after 43000
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Spread committed Sep 11, 2014
1 parent f23384e commit 0935f02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clientversion.h
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 0935f02

Please sign in to comment.