Browse Source

Test

etomic
jl777 8 years ago
parent
commit
594f75f54a
  1. 2
      iguana/exchanges/LP_commands.c
  2. 1
      iguana/exchanges/LP_quotes.c

2
iguana/exchanges/LP_commands.c

@ -219,7 +219,7 @@ char *stats_JSON(cJSON *argjson,char *remoteaddr,uint16_t port) // from rpc port
{
HASH_ITER(hh,LP_utxoinfos,utxo,tmp)
{
if ( LP_ismine(utxo) != 0 && strcmp(utxo->coin,base) == 0 )
if ( LP_ismine(utxo) != 0 && (strcmp(utxo->coin,base) == 0 || strcmp(utxo->coin,rel) == 0) )
LP_priceping(LP_mypubsock,utxo,rel,LP_profitratio - 1.);
}
}

1
iguana/exchanges/LP_quotes.c

@ -347,6 +347,7 @@ int32_t LP_priceping(int32_t pubsock,struct LP_utxoinfo *utxo,char *rel,double p
retjson = LP_quotejson(&Q);
jaddstr(retjson,"method","quote");
retstr = jprint(retjson,1);
printf("PING.(%s)\n",retstr);
LP_send(pubsock,retstr,1);
utxo->published = now;
return(0);

Loading…
Cancel
Save