From aa4a9c5250f94c82a9e4077a1b56ba634a9841fa Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Wed, 11 May 2011 17:12:47 -0400 Subject: [PATCH] Reset extraNonce only every 15 seconds, just in case some miner is updating time himself and stuff --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 4c8f20c1e4..bf7c99349d 100644 --- a/main.cpp +++ b/main.cpp @@ -3448,7 +3448,7 @@ void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& { // Update nExtraNonce int64 nNow = max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime()); - if (++nExtraNonce >= 0x7f && nNow > nPrevTime+1) + if (++nExtraNonce >= 0x7f && nNow > nPrevTime+15) { nExtraNonce = 1; nPrevTime = nNow;