diff --git a/iguana/exchanges/LP_stats.c b/iguana/exchanges/LP_stats.c index c0bf11515..fcc0c313b 100644 --- a/iguana/exchanges/LP_stats.c +++ b/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 )