Browse Source

Test

etomic
jl777 7 years ago
parent
commit
1ad5c5ea72
  1. 4
      iguana/exchanges/LP_socket.c

4
iguana/exchanges/LP_socket.c

@ -632,7 +632,8 @@ cJSON *_electrum_transaction(char *symbol,struct electrum_info *ep,cJSON **retjs
memcpy(coin->cachedtxiddata,serialized,len); memcpy(coin->cachedtxiddata,serialized,len);
free(hexstr); free(hexstr);
//printf("DATA.(%s) from (%s)\n",hexstr+1,jprint(hexjson,0)); //printf("DATA.(%s) from (%s)\n",hexstr+1,jprint(hexjson,0));
txobj = LP_transaction_fromdata(coin,txid,serialized,len); if ( (txobj= LP_transaction_fromdata(coin,txid,serialized,len)) != 0 )
{
if ( (tx= LP_transactionfind(coin,txid)) == 0 || tx->serialized == 0 ) if ( (tx= LP_transactionfind(coin,txid)) == 0 || tx->serialized == 0 )
{ {
txobj = LP_transactioninit(coin,txid,0,txobj); txobj = LP_transactioninit(coin,txid,0,txobj);
@ -649,6 +650,7 @@ cJSON *_electrum_transaction(char *symbol,struct electrum_info *ep,cJSON **retjs
printf("unexpected couldnt find tx %s %s\n",coin->symbol,bits256_str(str,txid)); printf("unexpected couldnt find tx %s %s\n",coin->symbol,bits256_str(str,txid));
free(serialized); free(serialized);
} }
}
*retjsonp = txobj; *retjsonp = txobj;
free_json(hexjson); free_json(hexjson);
//printf("return from electrum_transaction\n"); //printf("return from electrum_transaction\n");

Loading…
Cancel
Save