Move things

This commit is contained in:
jl777
2019-03-02 03:32:18 -11:00
parent e8afffb17b
commit 1f4863694b
3 changed files with 7 additions and 7 deletions

View File

@@ -221,7 +221,6 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
uint256 cbHash;
voutsum = GetBlockSubsidy(nHeight,consensusParams) + nFees;
CBlockIndex* pindexPrev = 0;
{
ENTER_CRITICAL_SECTION(cs_main);
@@ -234,7 +233,8 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
const int64_t nMedianTimePast = pindexPrev->GetMedianTimePast();
uint32_t proposedTime = GetAdjustedTime();
voutsum = GetBlockSubsidy(nHeight,consensusParams) + 10000*COIN; // approx fees
if (proposedTime == nMedianTimePast)
{
// too fast or stuck, this addresses the too fast issue, while moving