Browse Source

Test

etomic
jl777 7 years ago
parent
commit
9e3180daea
  1. 2
      iguana/exchanges/LP_commands.c
  2. 3
      iguana/exchanges/LP_utxo.c

2
iguana/exchanges/LP_commands.c

@ -343,7 +343,7 @@ zeroconf_claim(address, expiration=0)\n\
return(clonestr("{\"error\":\"couldnt set price\"}"));
//else if ( LP_mypriceset(&changed,rel,base,1./price) < 0 )
// return(clonestr("{\"error\":\"couldnt set price\"}"));
else if ( jint(argjson,"broadcast") != 0 || jobj(argjson,"broadcast") == 0 )
else if ( jobj(argjson,"broadcast") == 0 || jint(argjson,"broadcast") != 0 )
return(LP_pricepings(ctx,myipaddr,LP_mypubsock,base,rel,price * LP_profitratio));
else return(clonestr("{\"result\":\"success\"}"));
}

3
iguana/exchanges/LP_utxo.c

@ -244,6 +244,7 @@ int32_t LP_address_minmax(uint64_t *balancep,uint64_t *minp,uint64_t *maxp,struc
*minp = *maxp = *balancep = 0;
if ( (array= LP_listunspent(coin->symbol,coinaddr)) != 0 )
{
//printf("address minmax.(%s)\n",jprint(array,0));
if ( (n= cJSON_GetArraySize(array)) > 0 )
{
for (i=0; i<n; i++)
@ -255,9 +256,9 @@ int32_t LP_address_minmax(uint64_t *balancep,uint64_t *minp,uint64_t *maxp,struc
if ( *minp == 0 || value < *minp )
*minp = value;
*balancep += value;
n++;
}
}
free_json(array);
}
return(n);
}

Loading…
Cancel
Save