From b366cab901a67e078fedff9ef6c3dbf13a50e8e7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 25 Mar 2017 02:08:58 +0200 Subject: [PATCH] Disable updating template time --- src/miner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 3c9e79372..e78e009b2 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -425,13 +425,13 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) // Fill in header pblock->hashPrevBlock = pindexPrev->GetBlockHash(); pblock->hashReserved = uint256(); - UpdateTime(pblock, Params().GetConsensus(), pindexPrev); + //UpdateTime(pblock, Params().GetConsensus(), pindexPrev); pblock->nBits = GetNextWorkRequired(pindexPrev, pblock, Params().GetConsensus()); pblock->nSolution.clear(); pblocktemplate->vTxSigOps[0] = GetLegacySigOpCount(pblock->vtx[0]); CValidationState state; - if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false)) + if ( 0 && !TestBlockValidity(state, *pblock, pindexPrev, false, false)) { static uint32_t counter; if ( counter++ < 100 )