Browse Source

Fix non-etomic swap start crash.

pass-iguana-arg
Artem Pikulin 7 years ago
parent
commit
a291ae5f4f
  1. 4
      iguana/exchanges/LP_swap.c

4
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");

Loading…
Cancel
Save