Browse Source

Test

patch-3
jl777 7 years ago
parent
commit
b3b37bbb24
  1. 3
      iguana/exchanges/LP_transaction.c

3
iguana/exchanges/LP_transaction.c

@ -1616,8 +1616,9 @@ int32_t basilisk_swap_getsigscript(char *symbol,uint8_t *script,int32_t maxlen,b
{ {
cJSON *retjson,*vins,*item,*skey; int32_t n,scriptlen = 0; char *hexstr; cJSON *retjson,*vins,*item,*skey; int32_t n,scriptlen = 0; char *hexstr;
char str[65]; printf("getsigscript %s %s/v%d\n",symbol,bits256_str(str,txid),vini); char str[65]; printf("getsigscript %s %s/v%d\n",symbol,bits256_str(str,txid),vini);
if ( (retjson= LP_gettx(symbol,txid,0)) != 0 ) if ( bits256_nonz(txid) != 0 && (retjson= LP_gettx(symbol,txid,0)) != 0 )
{ {
printf("gettx.(%s)\n",jprint(retjson,0));
if ( (vins= jarray(&n,retjson,"vin")) != 0 && vini < n ) if ( (vins= jarray(&n,retjson,"vin")) != 0 && vini < n )
{ {
item = jitem(vins,vini); item = jitem(vins,vini);

Loading…
Cancel
Save