From 64e84d610b23d99d9554e63c364d61300a40f449 Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Wed, 14 Feb 2018 18:32:51 +0700 Subject: [PATCH] Exchange ETH txids. --- iguana/exchanges/LP_swap.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_swap.c b/iguana/exchanges/LP_swap.c index b84b08c21..24c189542 100644 --- a/iguana/exchanges/LP_swap.c +++ b/iguana/exchanges/LP_swap.c @@ -863,13 +863,16 @@ void LP_bobloop(void *_swap) sleep(10); } LP_swap_critical = (uint32_t)time(NULL); - if ( LP_swapdata_rawtxsend(swap->N.pair,swap,0x8000,data,maxlen,&swap->bobpayment,0x4000,0) == 0 ) { - printf("error sending bobpayment\n"); - } else if (swap->I.bobtomic[0] != 0) { + + if (swap->I.bobtomic[0] != 0) { char *paymentTx = LP_etomicbob_sends_payment(swap); strcpy(swap->bobpayment.I.ethTxid, paymentTx); free(paymentTx); } + + if ( LP_swapdata_rawtxsend(swap->N.pair,swap,0x8000,data,maxlen,&swap->bobpayment,0x4000,0) == 0 ) { + printf("error sending bobpayment\n"); + } //if ( LP_waitfor(swap->N.pair,swap,10,LP_verify_alicespend) < 0 ) // printf("error waiting for alicespend\n"); //swap->sentflag = 1;