Browse Source

Test

etomic
jl777 8 years ago
parent
commit
f82c946b96
  1. 4
      iguana/exchanges/LP_prices.c
  2. 3
      iguana/exchanges/LP_utxos.c

4
iguana/exchanges/LP_prices.c

@ -521,7 +521,11 @@ int32_t LP_utxo_clientpublish(struct LP_utxoinfo *utxo)
if ( (retjson= cJSON_Parse(retstr)) != 0 )
{
if ( jobj(retjson,"error") == 0 )
{
if ( strcmp("HUSH",utxo->coin) == 0 )
printf("clientpublish %s (%s)\n",peer->ipaddr,retstr);
utxo->T.lasttime = (uint32_t)time(NULL);
}
free_json(retjson);
}
free(retstr);

3
iguana/exchanges/LP_utxos.c

@ -494,8 +494,7 @@ struct LP_utxoinfo *LP_utxoadd(int32_t iambob,int32_t mypubsock,char *symbol,bit
{
if ( mypubsock >= 0 )
LP_send(mypubsock,jprint(LP_utxojson(utxo),1),1);
else
LP_utxo_clientpublish(utxo);
else LP_utxo_clientpublish(utxo);
if ( LP_mypeer != 0 && LP_ismine(utxo) > 0 )
LP_mypeer->numutxos++;
}

Loading…
Cancel
Save