|
|
@ -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 ) |
|
|
|