From 9e0df525d1cafdd5cb936596caf341afc34ba8a5 Mon Sep 17 00:00:00 2001 From: Mochimo Development Team Date: Mon, 5 Nov 2018 02:14:01 -0500 Subject: [PATCH] Update bupdata.c --- src/bupdata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bupdata.c b/src/bupdata.c index bc1396ca..32ac86a0 100644 --- a/src/bupdata.c +++ b/src/bupdata.c @@ -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; @@ -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--;