Browse Source

Test

etomic
jl777 7 years ago
parent
commit
3d9a5b51a6
  1. 1
      etomic_build/enable
  2. 4
      iguana/exchanges/LP_ordermatch.c
  3. 2
      iguana/exchanges/LP_signatures.c

1
etomic_build/enable

@ -2,3 +2,4 @@
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"ETH\"}"
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"KMD\"}"
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"ETOMIC\"}"

4
iguana/exchanges/LP_ordermatch.c

@ -380,6 +380,10 @@ uint64_t LP_basesatoshis(double relvolume,double price,uint64_t txfee,uint64_t d
struct LP_utxoinfo *LP_address_myutxopair(struct LP_utxoinfo *butxo,int32_t iambob,struct LP_address_utxo **utxos,int32_t max,struct iguana_info *coin,char *coinaddr,uint64_t txfee,double relvolume,double price,uint64_t desttxfee)
{
struct LP_address *ap; uint64_t fee,targetval,targetval2; int32_t m,mini; struct LP_address_utxo *up,*up2; double ratio;
if ( coin->etomic[0] != 0 )
coin = LP_coinfind("ETOMIC");
if ( coin == 0 )
return(0);
memset(butxo,0,sizeof(*butxo));
if ( iambob != 0 )
{

2
iguana/exchanges/LP_signatures.c

@ -452,7 +452,7 @@ char *LP_pricepings(void *ctx,char *myipaddr,int32_t pubsock,char *base,char *re
char *LP_postprice_recv(cJSON *argjson)
{
bits256 pubkey; double price; char *base,*rel;
printf("PRICE POSTED.(%s)\n",jprint(argjson,0));
//printf("PRICE POSTED.(%s)\n",jprint(argjson,0));
if ( (base= jstr(argjson,"base")) != 0 && (rel= jstr(argjson,"rel")) != 0 && (price= jdouble(argjson,"price")) > SMALLVAL )
{
pubkey = jbits256(argjson,"pubkey");

Loading…
Cancel
Save