Browse Source

Exchange ETH txids.

etomic
Artem Pikulin 7 years ago
parent
commit
64e84d610b
  1. 9
      iguana/exchanges/LP_swap.c

9
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;

Loading…
Cancel
Save