aboutsummaryrefslogtreecommitdiff
path: root/src/miner.cpp
diff options
context:
space:
mode:
authorjtimon <jtimon@monetize.io>2014-06-28 14:03:06 +0200
committerjtimon <jtimon@monetize.io>2014-08-23 13:21:50 +0200
commitc2c02f3fa99385f5a5be722fda6f71522c93bdaa (patch)
tree608b76aa8e523a4118f569518bf5150e85d77c48 /src/miner.cpp
parent92b3d3630d6d63305bec136a23c7be4cb2bb2652 (diff)
downloadbitcoin-c2c02f3fa99385f5a5be722fda6f71522c93bdaa.tar.xz
Move UpdateTime to pow
Diffstat (limited to 'src/miner.cpp')
-rw-r--r--src/miner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/miner.cpp b/src/miner.cpp
index 06acff1c33..97b74695a7 100644
--- a/src/miner.cpp
+++ b/src/miner.cpp
@@ -305,7 +305,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
// Fill in header
pblock->hashPrevBlock = pindexPrev->GetBlockHash();
- UpdateTime(*pblock, pindexPrev);
+ UpdateTime(pblock, pindexPrev);
pblock->nBits = GetNextWorkRequired(pindexPrev, pblock);
pblock->nNonce = 0;
pblocktemplate->vTxSigOps[0] = GetLegacySigOpCount(pblock->vtx[0]);
@@ -538,7 +538,7 @@ void static BitcoinMiner(CWallet *pwallet)
break;
// Update nTime every few seconds
- UpdateTime(*pblock, pindexPrev);
+ UpdateTime(pblock, pindexPrev);
if (Params().AllowMinDifficultyBlocks())
{
// Changing pblock->nTime can change work required on testnet: