|
|
@ -571,7 +571,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 |
|
|
|
nLastBlockSize = nBlockSize; |
|
|
|
if ( ASSETCHAINS_ADAPTIVEPOW == 0 ) |
|
|
|
blocktime = 1 + std::max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime()); |
|
|
|
else blocktime = 1 + std::max(pindexPrev->nTime+1, GetAdjustedTime()); |
|
|
|
else blocktime = 1 + std::max((int64_t)(pindexPrev->nTime+1), GetAdjustedTime()); |
|
|
|
//pblock->nTime = blocktime + 1;
|
|
|
|
pblock->nBits = GetNextWorkRequired(pindexPrev, pblock, Params().GetConsensus()); |
|
|
|
|
|
|
|