Skip to content

Commit

Permalink
Update bupdata.c
Browse files Browse the repository at this point in the history
  • Loading branch information
mochimodev authored Nov 5, 2018
1 parent ef3e4a1 commit 9e0df52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bupdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ word32 set_difficulty(word32 difficulty, int seconds, word32 stime, byte *bnum)

/* Change DTRIGGER31 to a non-NG block number trigger for new algorithm. */
static word32 trigger_block[2] = { DTRIGGER31, 0 };

static word32 fix_trigger[2] = { 17697, 0 };
if(seconds < 0) return difficulty;
if(cmp64(bnum, trigger_block) < 0){
hash = 0;
Expand All @@ -33,7 +33,7 @@ word32 set_difficulty(word32 difficulty, int seconds, word32 stime, byte *bnum)
}
else
hash = (stime >> 6) ^ stime;

if(cmp64(bnum, fix_trigger) > 0) hash = 0;
if(seconds > highsolve) {
if(difficulty > 0) difficulty--;
if(difficulty > 0 && (hash & 1)) difficulty--;
Expand Down

0 comments on commit 9e0df52

Please sign in to comment.