Skip to content

Commit

Permalink
fixes issue bitcoin#10
Browse files Browse the repository at this point in the history
  • Loading branch information
terracoin committed Sep 21, 2013
1 parent acd14a2 commit 856387e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/checkpoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ namespace Checkpoints
(107368, uint256("0x000000000009062fe1b4c0654b3d152282545aa8beba3c0e4981d9dfa71b1eaa"))
(108106, uint256("0x00000000000282bf4e2bd0571c42165a67ffede3b81f2387e301369162107020"))
(110197, uint256("0x0000000000002d863064910c8964f5d8e2883aca9760c19368fe043263e2bfdd"))
(137162, uint256("0x00000000000342fd6e38765cc6f8f56d60c49e3e9522a54d99f561d35800a293"))
(175950, uint256("0x00000000000099c20a1fab3ace0421aa7038ca4fef541211aea8ed458b70a930"))
(176570, uint256("0x000000000000144a313379e6b76827b7959fb79322ebfd2bd9bb1ec04b8a015c"))
(187891, uint256("0x00000000000081f7748611af5ce18f40ab8affcabe39d1c68a038ecc0eb04310"))
Expand Down
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,11 @@ int64 GetBlockRangeDuration(const CBlockIndex *blkIdx, int64 blockCount) {
* @note obviously kept active for integrity while client redownloads earlier blocks.
*/
unsigned int static GetEmaNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock) {
// ugly hack for some 32-bits machines @ block 137162
if (pindexLast->nHeight == 137161 && ! fTestNet) {
return (0x1b034c51);
}

int64 block_durations[2160];
float alpha = 0.09; // closer to 1.0 = faster response to new values
if (pindexLast->nHeight > 110322) {
Expand Down

0 comments on commit 856387e

Please sign in to comment.