From a291ae5f4f087fddaef3a1d59c09321305819805 Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Wed, 6 Jun 2018 17:53:02 +0700 Subject: [PATCH] Fix non-etomic swap start crash. --- iguana/exchanges/LP_swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_swap.c b/iguana/exchanges/LP_swap.c index d48d1f63a..cf2c68c53 100644 --- a/iguana/exchanges/LP_swap.c +++ b/iguana/exchanges/LP_swap.c @@ -855,7 +855,7 @@ void LP_bobloop(void *_swap) bobwaittimeout = LP_calc_waittimeout(bobstr); alicewaittimeout = LP_calc_waittimeout(alicestr); #ifndef NOTETOMIC - if (swap->I.bobtomic[0] != 0 || swap->I.alicetomic != 0) { + if (swap->I.bobtomic[0] != 0 || swap->I.alicetomic[0] != 0) { uint64_t eth_balance = getEthBalance(swap->I.etomicsrc); if (eth_balance < 500000) { err = -5000, printf("Bob ETH balance too low, aborting swap!\n"); @@ -958,7 +958,7 @@ void LP_aliceloop(void *_swap) alicewaittimeout = LP_calc_waittimeout(alicestr); #ifndef NOTETOMIC - if (swap->I.bobtomic[0] != 0 || swap->I.alicetomic != 0) { + if (swap->I.bobtomic[0] != 0 || swap->I.alicetomic[0] != 0) { uint64_t eth_balance = getEthBalance(swap->I.etomicdest); if (eth_balance < 500000) { err = -5001, printf("Alice ETH balance too low, aborting swap!\n");