From e12ea51956ec3e70911b50b5090e93ae5f77e75c Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 9 Apr 2018 21:24:42 +0300 Subject: [PATCH] Test --- src/miner.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 6102451d8..69a7d240c 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -384,9 +384,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) nLastBlockTx = nBlockTx; nLastBlockSize = nBlockSize; - if ( ASSETCHAINS_STAKED != 0 ) - blocktime = pindexPrev->GetMedianTimePast()+1; - else blocktime = std::max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime()); + blocktime = std::max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime()); pblock->nTime = blocktime; pblock->nBits = GetNextWorkRequired(pindexPrev, pblock, Params().GetConsensus()); LogPrintf("CreateNewBlock(): total size %u blocktime.%u nBits.%08x\n", nBlockSize,blocktime,pblock->nBits);