Browse Source

Test

etomic
jl777 8 years ago
parent
commit
812d1e460d
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_prices.c
  3. 2
      iguana/exchanges/LP_quotes.c

2
iguana/exchanges/LP_nativeDEX.c

@ -142,7 +142,7 @@ int32_t LP_subsock_check(struct LP_peerinfo *peer)
portable_mutex_lock(&LP_commandmutex);
if ( (retstr= stats_JSON(argjson,"127.0.0.1",0)) != 0 )
{
printf("%s SUB.[%d] %s\n",peer->ipaddr,recvsize,(char *)ptr);
//printf("%s SUB.[%d] %s\n",peer->ipaddr,recvsize,(char *)ptr);
free(retstr);
}
portable_mutex_unlock(&LP_commandmutex);

2
iguana/exchanges/LP_prices.c

@ -515,9 +515,9 @@ void LP_priceupdate(char *base,char *rel,double price,double avebid,double aveas
void LP_pricefeedupdate(bits256 pubkey,char *base,char *rel,double price)
{
struct LP_priceinfo *basepp,*relpp; struct LP_pubkeyinfo *pubp; char str[65];
printf("PRICEFEED UPDATE.(%s/%s) %.8f %s\n",base,rel,price,bits256_str(str,pubkey));
if ( price > SMALLVAL && (basepp= LP_priceinfofind(base)) != 0 && (relpp= LP_priceinfofind(rel)) != 0 )
{
printf("PRICEFEED UPDATE.(%s/%s) %.8f %s\n",base,rel,price,bits256_str(str,pubkey));
if ( (pubp= LP_pubkeyadd(pubkey)) != 0 )
pubp->matrix[basepp->ind][relpp->ind] = price;
else printf("error creating pubkey entry\n");

2
iguana/exchanges/LP_quotes.c

@ -204,7 +204,7 @@ char *LP_pricepings(int32_t pubsock,char *base,char *rel,double price)
char *LP_postedprice(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