Fix issue #848 : broken mining on testnet

This commit is contained in:
Gavin Andresen
2012-02-16 10:22:31 -05:00
committed by Luke Dashjr
parent ffef16404d
commit 91aadbdacf
3 changed files with 21 additions and 3 deletions

View File

@@ -1548,7 +1548,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