This commit is contained in:
jl777
2017-03-21 09:21:50 +02:00
parent 2eceb04b6a
commit cdf5f8c86a

View File

@@ -108,6 +108,8 @@ void komodo_gateway_deposit(char *coinaddr,uint64_t value,char *symbol,uint64_t
struct pax_transaction *pax; uint8_t buf[35]; int32_t addflag = 0; struct komodo_state *sp; char str[16],dest[16],*s; struct pax_transaction *pax; uint8_t buf[35]; int32_t addflag = 0; struct komodo_state *sp; char str[16],dest[16],*s;
//if ( KOMODO_PAX == 0 ) //if ( KOMODO_PAX == 0 )
// return; // return;
if ( strcmp(symbol,ASSETCHAINS_SYMBOL) != 0 )
return;
sp = komodo_stateptr(str,dest); sp = komodo_stateptr(str,dest);
pthread_mutex_lock(&komodo_mutex); pthread_mutex_lock(&komodo_mutex);
pax_keyset(buf,txid,vout,type); pax_keyset(buf,txid,vout,type);
@@ -902,8 +904,6 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
return(0); return(0);
} }
} }
if ( strcmp(ASSETCHAINS_SYMBOL,"EUR") == 0 )
printf("%s height.%d\n",ASSETCHAINS_SYMBOL,height);
if ( script[offset] == opcode && opretlen < block.vtx[0].vout[n-1].scriptPubKey.size() ) if ( script[offset] == opcode && opretlen < block.vtx[0].vout[n-1].scriptPubKey.size() )
{ {
if ( (num= komodo_issued_opreturn(base,txids,vouts,values,srcvalues,kmdheights,otherheights,baseids,rmd160s,&script[offset],opretlen,opcode == 'X')) > 0 ) if ( (num= komodo_issued_opreturn(base,txids,vouts,values,srcvalues,kmdheights,otherheights,baseids,rmd160s,&script[offset],opretlen,opcode == 'X')) > 0 )
@@ -1102,7 +1102,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
} // } //
if ( didstats != 0 ) if ( didstats != 0 )
pax->didstats = 1; pax->didstats = 1;
if ( (0 && pax2= komodo_paxfind(txid,vout,'I')) != 0 ) if ( 0 && (pax2= komodo_paxfind(txid,vout,'I')) != 0 )
{ {
pax2->fiatoshis = pax->fiatoshis; pax2->fiatoshis = pax->fiatoshis;
pax2->komodoshis = pax->komodoshis; pax2->komodoshis = pax->komodoshis;