diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index ee121e29b..1aeedfe08 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -163,7 +163,7 @@ void komodo_gateway_deposits(CMutableTransaction *txNew,int32_t shortflag,char * { struct pax_transaction *pax,*tmp; uint8_t *script,opcode,opret[10000],data[10000]; int32_t i,len=0,opretlen=0,numvouts=1; PENDING_KOMODO_TX = 0; - if ( strcmp(symbol,"KMD") == 0 ) + if ( strcmp(symbol,"KMD") != 0 ) opcode = 'I'; else opcode = 'X'; HASH_ITER(hh,PAX,pax,tmp) diff --git a/src/miner.cpp b/src/miner.cpp index d444b8855..0514238c8 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -378,13 +378,11 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) } else if ( komodo_is_issuer() != 0 ) { - komodo_gateway_deposits(&txNew,0,(char *)"KMD"); + komodo_gateway_deposits(&txNew,0,ASSETCHAINS_SYMBOL); fprintf(stderr,"txNew numvouts.%d\n",(int32_t)txNew.vout.size()); } - pblock->vtx[0] = txNew; pblocktemplate->vTxFees[0] = -nFees; - // Randomise nonce arith_uint256 nonce = UintToArith256(GetRandHash()); // Clear the top and bottom 16 bits (for local use as thread flags and counters)