|
|
@ -174,7 +174,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 |
|
|
|
} |
|
|
|
} else pk = _pk; |
|
|
|
|
|
|
|
uint64_t voutsum=0; uint32_t blocktime; const CChainParams& chainparams = Params(); |
|
|
|
uint32_t blocktime; const CChainParams& chainparams = Params(); |
|
|
|
bool fNotarizationBlock = false; std::vector<int8_t> NotarizationNotaries; |
|
|
|
|
|
|
|
//fprintf(stderr,"%s: create new block with pubkey=%s\n", __func__, HexStr(pk).c_str());
|
|
|
@ -241,9 +241,6 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 |
|
|
|
|
|
|
|
//fprintf(stderr,"%s: nHeight=%d, consensusBranchId=%u, proposedTime=%u\n", __func__, nHeight, consensusBranchId, proposedTime);
|
|
|
|
|
|
|
|
voutsum = GetBlockSubsidy(nHeight,consensusParams) + 10000*COIN; // approx fees
|
|
|
|
//fprintf(stderr,"%s: voutsum=%lu\n", __func__, voutsum);
|
|
|
|
|
|
|
|
if (proposedTime == nMedianTimePast) |
|
|
|
{ |
|
|
|
// too fast or stuck, this addresses the too fast issue, while moving
|
|
|
|