mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
Reset extraNonce only every 15 seconds, just in case some miner is updating time himself and stuff
This commit is contained in:
parent
3a8029f033
commit
aa4a9c5250
2
main.cpp
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user