Browse Source

Test

etomic
jl777 7 years ago
parent
commit
88ecc91cd1
  1. 4
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_ordermatch.c

4
iguana/exchanges/LP_commands.c

@ -165,11 +165,9 @@ trust(pubkey, trust)\n\
{
if ( price > SMALLVAL )
{
printf("setprice %.8f\n",price);
if ( LP_mypriceset(&changed,base,rel,price) < 0 )
return(clonestr("{\"error\":\"couldnt set price\"}"));
else if ( changed != 0 )
return(LP_pricepings(ctx,myipaddr,LP_mypubsock,base,rel,price * LP_profitratio));
else return(LP_pricepings(ctx,myipaddr,LP_mypubsock,base,rel,price * LP_profitratio));
} else return(clonestr("{\"error\":\"no price\"}"));
}
else if ( strcmp(method,"autoprice") == 0 )

2
iguana/exchanges/LP_ordermatch.c

@ -200,6 +200,8 @@ char *LP_pricepings(void *ctx,char *myipaddr,int32_t pubsock,char *base,char *re
jaddstr(reqjson,"method","postprice");
msg = jprint(reqjson,1);
LP_broadcast_message(pubsock,base,rel,zero,msg);
printf("broadcast.(%s)\n",msg);
free(msg);
return(clonestr("{\"result\":\"success\"}"));
}

Loading…
Cancel
Save