diff --git a/.gitignore b/.gitignore index d537316c8..f5fe8bd16 100755 --- a/.gitignore +++ b/.gitignore @@ -362,3 +362,5 @@ iguana/DB/SWAPS/3462690702-2419919594 iguana/DB/SWAPS/543051861-1532200070 iguana/DB/SWAPS/442294237-2721246052 + +iguana/DB/SWAPS/1247864366-3828803132 diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index 3ed62870d..ebef96026 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -2213,13 +2213,13 @@ int32_t basilisk_swapiteration(struct supernet_info *myinfo,struct basilisk_swap else { tradebot_swap_balancingtrade(myinfo,swap,1); - printf("Bob spends alicepayment\n"); + printf("Bob spends alicepayment aliceconfirms.%d\n",swap->I.aliceconfirms); swap->I.statebits |= 0x40000; - while ( basilisk_numconfirms(myinfo,swap,&swap->bobspend) < swap->I.aliceconfirms ) + if ( basilisk_numconfirms(myinfo,swap,&swap->bobspend) >= swap->I.aliceconfirms ) { printf("bobspend confirmed\n"); swap->I.statebits |= 0x80000; - printf("Bob confirms spend of Alice's payment\n"); + printf("Bob confirming spend of Alice's payment\n"); sleep(DEX_SLEEP); } retval = 1;