From f80f64ccb11f7ccef5b62ffcbac27213b4b9e5bd Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 2 Jul 2016 20:27:47 -0300 Subject: [PATCH] test --- basilisk/basilisk_swap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index 6bc66bc4d..324a04c57 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -527,7 +527,6 @@ void basilisk_swaploop(void *_swap) fprintf(stderr,"start swap\n"); maxlen = 1024*1024 + sizeof(*swap); data = malloc(maxlen); -getchar(); while ( time(NULL) < swap->expiration ) { fprintf(stderr,"swapstate.%x\n",swap->statebits); @@ -716,8 +715,11 @@ struct basilisk_swap *basilisk_thread_start(struct supernet_info *myinfo,struct printf("START swap requestid.%u\n",rp->requestid); if ( bitcoin_swapinit(myinfo,swap) != 0 ) { - myinfo->swaps[myinfo->numswaps++] = swap; +#ifdef __APPLE__ + fprintf(stderr,"launch\n"); iguana_launch(iguana_coinfind("BTCD"),"basilisk_swaploop",basilisk_swaploop,swap,IGUANA_PERMTHREAD); +#endif + myinfo->swaps[myinfo->numswaps++] = swap; } } portable_mutex_unlock(&myinfo->DEX_swapmutex);