Browse Source

Test

etomic
jl777 7 years ago
parent
commit
ed2214f2c1
  1. 12
      iguana/exchanges/LP_stats.c

12
iguana/exchanges/LP_stats.c

@ -255,8 +255,16 @@ int32_t LP_finished_lastheight(struct LP_swapstats *sp,int32_t iambob)
int32_t LP_swap_finished(struct LP_swapstats *sp,int32_t dPoWflag)
{
struct iguana_info *bob,*alice;
bob = LP_coinfind(sp->Q.srccoin);
alice = LP_coinfind(sp->Q.destcoin);
if ( (bob= LP_coinfind(sp->Q.srccoin)) == 0 )
{
printf("no bobcoin.%s\n",sp->Q.srccoin);
return(0);
}
if ( (alice= LP_coinfind(sp->Q.destcoin)) == 0 )
{
printf("no alicecoin.%s\n",sp->Q.destcoin);
return(0);
}
sp->bob_dPoWheight = LP_dPoWheight(bob);
sp->alice_dPoWheight = LP_dPoWheight(alice);
if ( sp->finished == 0 )

Loading…
Cancel
Save