From aa0b9e00b9d175711deaba0e0b39d521c2659427 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 9 Apr 2018 15:50:37 +0300 Subject: [PATCH] Test --- src/miner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/miner.cpp b/src/miner.cpp index 384a60f40..d118b3da1 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -422,6 +422,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) txNew.vout.resize(1); txNew.vout[0].scriptPubKey = scriptPubKeyIn; txNew.vout[0].nValue = GetBlockSubsidy(nHeight,chainparams.GetConsensus()); + txNew.nLockTime = std::max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime()); txNew.nExpiryHeight = 0; // Add fees txNew.vout[0].nValue += nFees;