Browse Source

Test

etomic
jl777 7 years ago
parent
commit
8743a5701f
  1. 6
      iguana/exchanges/LP_cache.c
  2. 6
      iguana/exchanges/LP_commands.c
  3. 2
      iguana/exchanges/LP_swap.c

6
iguana/exchanges/LP_cache.c

@ -45,10 +45,10 @@ struct LP_transaction *LP_create_transaction(struct iguana_info *coin,bits256 tx
vins = jarray(&numvins,txobj,"vin");
vouts = jarray(&numvouts,txobj,"vout");
tx = LP_transactionadd(coin,txid,height,numvouts,numvins);
tx->serialized = serialized;
//free(serialized);
tx->serialized = 0;//serialized;
free(serialized);
tx->fpos = fpos;
tx->len = tx->len;
tx->len = 0;//tx->len;
tx->SPV = tx->height = height;
//printf("tx.%s numvins.%d numvouts.%d\n",bits256_str(str,txid),numvins,numvouts);
for (i=0; i<numvouts; i++)

6
iguana/exchanges/LP_commands.c

@ -35,12 +35,12 @@ char *LP_numutxos()
char *stats_JSON(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,char *remoteaddr,uint16_t port) // from rpc port
{
char *method,*userpass,*base,*rel,*coin,*retstr = 0; int32_t changed,flag = 0; cJSON *retjson,*reqjson = 0; struct iguana_info *ptr;
method = jstr(argjson,"method");
if ( //strcmp(method,"uitem") == 0 || strcmp(method,"postutxos") == 0 ||
method = jstr(argjson,"method");
/*if ( //strcmp(method,"uitem") == 0 || strcmp(method,"postutxos") == 0 ||
strcmp(method,"notify") == 0
|| strcmp(method,"postprice") == 0
)
return(clonestr("{}"));
return(clonestr("{}"));*/
/*if ( (ipaddr= jstr(argjson,"ipaddr")) != 0 && (argport= juint(argjson,"port")) != 0 && (method == 0 || strcmp(method,"electrum") != 0) )
{
if ( strcmp(ipaddr,"127.0.0.1") != 0 && argport >= 1000 )

2
iguana/exchanges/LP_swap.c

@ -895,7 +895,7 @@ void LP_aliceloop(void *_swap)
}
basilisk_swap_finished(swap);
printf("finish swap.%p\n",swap);
//free(swap);
free(swap);
G.LP_pendingswaps--;
}

Loading…
Cancel
Save