jl777 7 years ago
parent
commit
f0315e45ad
  1. 2
      iguana/exchanges/LP_transaction.c
  2. 2
      iguana/exchanges/LP_utxo.c

2
iguana/exchanges/LP_transaction.c

@ -799,6 +799,7 @@ int32_t LP_swap_getcoinaddr(char *symbol,char *coinaddr,bits256 txid,int32_t vou
{
cJSON *retjson;
coinaddr[0] = 0;
printf("LP_swap_getcoinaddr\n");
if ( (retjson= LP_gettx(symbol,txid)) != 0 )
{
LP_txdestaddr(coinaddr,txid,vout,retjson);
@ -810,6 +811,7 @@ int32_t LP_swap_getcoinaddr(char *symbol,char *coinaddr,bits256 txid,int32_t vou
int32_t basilisk_swap_getsigscript(char *symbol,uint8_t *script,int32_t maxlen,bits256 txid,int32_t vini)
{
cJSON *retjson,*vins,*item,*skey; int32_t n,scriptlen = 0; char *hexstr;
printf("basilisk_swap_getsigscript\n");
if ( (retjson= LP_gettx(symbol,txid)) != 0 )
{
if ( (vins= jarray(&n,retjson,"vin")) != 0 && vini < n )

2
iguana/exchanges/LP_utxo.c

@ -412,7 +412,7 @@ int32_t LP_transactioninit(struct iguana_info *coin,bits256 txid,int32_t iter)
struct LP_transaction *tx; int32_t i,height,numvouts,numvins,spentvout; cJSON *txobj,*vins,*vouts,*vout,*vin; bits256 spenttxid; char str[65];
if ( (txobj= LP_gettx(coin->symbol,txid)) != 0 )
{
//printf("TX.(%s)\n",jprint(txobj,0));
printf("LP_transactioninit.(%s)\n",jprint(txobj,0));
if ( coin->electrum == 0 )
height = LP_txheight(coin,txid);
else height = -1;

Loading…
Cancel
Save