Fix issue #848 : broken mining on testnet

This commit is contained in:
Gavin Andresen
2012-03-16 16:40:38 -04:00
committed by Luke Dashjr
parent 458b6e6436
commit 27960a36de
3 changed files with 22 additions and 4 deletions
+2 -2
View File
@@ -1654,7 +1654,7 @@ Value getwork(const Array& params, bool fHelp)
}
// Update nTime
pblock->nTime = max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime());
pblock->UpdateTime(pindexPrev);
pblock->nNonce = 0;
// Update nExtraNonce
@@ -1751,7 +1751,7 @@ Value getmemorypool(const Array& params, bool fHelp)
}
// Update nTime
pblock->nTime = max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime());
pblock->UpdateTime(pindexPrev);
pblock->nNonce = 0;
Array transactions;