Browse Source

Test

etomic
jl777 7 years ago
parent
commit
a4784cf4f0
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 4
      iguana/exchanges/LP_prices.c
  3. 4
      iguana/exchanges/LP_utxos.c

4
iguana/exchanges/LP_nativeDEX.c

@ -292,8 +292,8 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int
LP_utxo_spentcheck(pubsock,utxo,profitmargin);
if ( utxo->T.lasttime == 0 )
LP_utxo_clientpublish(utxo);
else if ( strcmp(utxo->coin,"HUSH") == 0 )
printf("lasttime set %s\n",bits256_str(str,utxo->payment.txid));
//else if ( strcmp(utxo->coin,"HUSH") == 0 )
// printf("lasttime set %s\n",bits256_str(str,utxo->payment.txid));
}
}
//if ( LP_canbind == 0 ) printf("counter.%d canbind.%d swapentry\n",counter,LP_canbind);

4
iguana/exchanges/LP_prices.c

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

4
iguana/exchanges/LP_utxos.c

@ -543,8 +543,8 @@ int32_t LP_utxosparse(char *destipaddr,uint16_t destport,char *retstr,uint32_t n
//printf("parse.(%s)\n",jprint(item,0));
if ( (utxo= LP_utxoaddjson(1,-1,item)) != 0 )
{
if ( strcmp(utxo->coin,"HUSH") == 0 )
printf("%s set lasttime (%s)\n",destipaddr,jprint(item,0));
//if ( strcmp(utxo->coin,"HUSH") == 0 )
// printf("%s set lasttime (%s)\n",destipaddr,jprint(item,0));
utxo->T.lasttime = now;
}
}

Loading…
Cancel
Save