mirror of
https://github.com/jwinterm/myriadcoin.git
synced 2026-11-18 10:13:54 +01:00
Fix issue #848 : broken mining on testnet
This commit is contained in:
committed by
Luke Dashjr
parent
458b6e6436
commit
27960a36de
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user