From 7cbf644437fb88fc692d48a4ef53e8f432054388 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 7 Nov 2016 20:51:02 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 2 +- src/miner.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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)