|
|
@ -610,7 +610,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 |
|
|
|
|
|
|
|
int32_t stakeHeight = chainActive.Height() + 1; |
|
|
|
|
|
|
|
//LogPrintf("CreateNewBlock(): total size %u blocktime.%u nBits.%08x stake.%i\n", nBlockSize,blocktime,pblock->nBits,isStake);
|
|
|
|
LogPrintf("CreateNewBlock(): total size %u blocktime.%u nBits.%08x stake.%i\n", nBlockSize,blocktime,pblock->nBits,isStake); |
|
|
|
|
|
|
|
// Create coinbase tx
|
|
|
|
CMutableTransaction txNew = CreateNewContextualCMutableTransaction(consensusParams, nHeight); |
|
|
@ -621,7 +621,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 |
|
|
|
txNew.vout.resize(1); |
|
|
|
txNew.vout[0].scriptPubKey = scriptPubKeyIn; |
|
|
|
txNew.vout[0].nValue = GetBlockSubsidy(nHeight,consensusParams) + nFees; |
|
|
|
//fprintf(stderr,"mine ht.%d with %.8f\n",nHeight,(double)txNew.vout[0].nValue/COIN);
|
|
|
|
fprintf(stderr,"mine ht.%d with %.8f\n",nHeight,(double)txNew.vout[0].nValue/COIN); |
|
|
|
txNew.nExpiryHeight = 0; |
|
|
|
if ( ASSETCHAINS_ADAPTIVEPOW <= 0 ) |
|
|
|
txNew.nLockTime = std::max(pindexPrev->GetMedianTimePast()+1, GetTime()); |
|
|
|