diff --git a/src/miner.cpp b/src/miner.cpp index 0cce3e779..208bfe773 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -99,6 +99,7 @@ void UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, } int32_t komodo_pax_opreturn(uint8_t *opret,int32_t maxsize); +void komodo_gateway_deposits(CMutableTransaction& txNew); extern int32_t KOMODO_INITDONE; extern uint64_t KOMODO_DEPOSIT; extern char ASSETCHAINS_SYMBOL[16]; @@ -351,23 +352,29 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) //txNew.nLockTime = (uint32_t)time(NULL) - 60; txNew.vin.resize(1); txNew.vin[0].prevout.SetNull(); - int32_t i,opretlen; uint8_t opret[256],*ptr; - if ( (opretlen= komodo_pax_opreturn(opret,sizeof(opret))) > 0 ) - { - txNew.vout.resize(2); - txNew.vout[1].scriptPubKey.resize(opretlen); - ptr = (uint8_t *)txNew.vout[1].scriptPubKey.data(); - for (i=0; i 0 ) + { + txNew.vout.resize(2); + txNew.vout[1].scriptPubKey.resize(opretlen); + ptr = (uint8_t *)txNew.vout[1].scriptPubKey.data(); + for (i=0; ivtx[0] = txNew; pblocktemplate->vTxFees[0] = -nFees;