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 ( (retjson= cJSON_Parse(retstr)) != 0 )
{ {
if ( jobj(retjson,"error") == 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); utxo->T.lasttime = (uint32_t)time(NULL);
}
free_json(retjson); free_json(retjson);
} }
free(retstr); 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 ) if ( mypubsock >= 0 )
LP_send(mypubsock,jprint(LP_utxojson(utxo),1),1); LP_send(mypubsock,jprint(LP_utxojson(utxo),1),1);
else else LP_utxo_clientpublish(utxo);
LP_utxo_clientpublish(utxo);
if ( LP_mypeer != 0 && LP_ismine(utxo) > 0 ) if ( LP_mypeer != 0 && LP_ismine(utxo) > 0 )
LP_mypeer->numutxos++; LP_mypeer->numutxos++;
} }

Loading…
Cancel
Save