Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
bd93d0ed57
  1. 8
      basilisk/basilisk_swap.c

8
basilisk/basilisk_swap.c

@ -525,12 +525,6 @@ void basilisk_swaploop(void *_swap)
uint8_t *data; int32_t i,j,maxlen,datalen,numconfirms; struct supernet_info *myinfo; struct basilisk_swap *swap = _swap;
myinfo = swap->myinfo;
printf("start swap\n");
if ( bitcoin_swapinit(myinfo,swap) == 0 )
{
printf("bitcoin_swapinit error\n");
return;
}
printf("back from swapinit\n");
maxlen = sizeof(*swap);
data = malloc(maxlen);
while ( time(NULL) < swap->expiration )
@ -722,7 +716,7 @@ struct basilisk_swap *basilisk_thread_start(struct supernet_info *myinfo,struct
if ( bitcoin_swapinit(myinfo,swap) != 0 )
{
myinfo->swaps[myinfo->numswaps++] = swap;
//iguana_launch(iguana_coinfind("BTCD"),"basilisk_swaploop",basilisk_swaploop,swap,IGUANA_PERMTHREAD);
iguana_launch(iguana_coinfind("BTCD"),"basilisk_swaploop",basilisk_swaploop,swap,IGUANA_PERMTHREAD);
}
}
portable_mutex_unlock(&myinfo->DEX_swapmutex);

Loading…
Cancel
Save