Browse Source

Test

etomic
jl777 7 years ago
parent
commit
895fd428fe
  1. 2
      iguana/exchanges/LP_stats.c
  2. 3
      iguana/exchanges/LP_transaction.c

2
iguana/exchanges/LP_stats.c

@ -643,7 +643,7 @@ char *LP_gettradestatus(uint64_t aliceid,uint32_t requestid,uint32_t quoteid)
//printf("gettradestatus.(%llu)\n",(long long)aliceid);
if ( IAMLP != 0 )
{
if ( (sp= LP_swapstats_find(aliceid)) != 0 )
if ( (sp= LP_swapstats_find(aliceid)) != 0 && sp->Q.satoshis != 0 && sp->Q.destsatoshis != 0 && bits256_nonz(sp->bobdeposit) != 0 )
{
if ( time(NULL) > sp->lasttime+60 )
{

3
iguana/exchanges/LP_transaction.c

@ -1669,9 +1669,10 @@ bits256 LP_swap_spendtxid(char *symbol,char *destaddr,bits256 utxotxid,int32_t u
if ( bits256_cmp(vintxid,utxotxid) == 0 )
{
LP_txdestaddr(destaddr,txid,0,txobj);
char str[65],str2[65],str3[65]; printf("LP_swap_spendtxid: in %s/v%d spends %s vs %s found.%d destaddr.(%s)\n",bits256_str(str,txid),utxovout,bits256_str(str2,vintxid),bits256_str(str3,utxotxid),bits256_cmp(vintxid,utxotxid) == 0,destaddr);
spendtxid = txid;
break;
}
char str[65],str2[65],str3[65]; printf("LP_swap_spendtxid: in %s/v%d spends %s vs %s found.%d destaddr.(%s)\n",bits256_str(str,txid),utxovout,bits256_str(str2,vintxid),bits256_str(str3,utxotxid),bits256_cmp(vintxid,utxotxid) == 0,destaddr);
}
}
free_json(txobj);

Loading…
Cancel
Save