diff --git a/basilisk/basilisk_DEX.c b/basilisk/basilisk_DEX.c index 50be85ad3..f55d1284d 100755 --- a/basilisk/basilisk_DEX.c +++ b/basilisk/basilisk_DEX.c @@ -207,7 +207,7 @@ char *basilisk_start(struct supernet_info *myinfo,struct basilisk_request *rp,ui if ( (bits256_cmp(rp->hash,myinfo->myaddr.persistent) == 0 || bits256_cmp(rp->desthash,myinfo->myaddr.persistent) == 0) ) { printf("START thread to complete %u/%u for (%s %.8f) <-> (%s %.8f) q.%u\n",rp->requestid,rp->quoteid,rp->src,dstr(rp->srcamount),rp->dest,dstr(rp->destamount),rp->quoteid); - if ( basilisk_thread_start(myinfo,rp,statebits) != 0 ) + if ( basilisk_thread_start(myinfo,rp) != 0 ) { basilisk_request_enqueue(myinfo,rp); return(clonestr("{\"result\":\"started atomic swap thread\"}")); diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index 423fee78d..148a37fb9 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -694,7 +694,7 @@ void basilisk_swaploop(void *_swap) basilisk_swap_purge(myinfo,swap); } -struct basilisk_swap *basilisk_thread_start(struct supernet_info *myinfo,struct basilisk_request *rp,uint32_t statebits) +struct basilisk_swap *basilisk_thread_start(struct supernet_info *myinfo,struct basilisk_request *rp) { int32_t i; struct basilisk_swap *swap = 0; portable_mutex_lock(&myinfo->DEX_swapmutex); @@ -709,7 +709,6 @@ struct basilisk_swap *basilisk_thread_start(struct supernet_info *myinfo,struct swap = calloc(1,sizeof(*swap)); swap->req = *rp; swap->myinfo = myinfo; - swap->statebits = statebits; printf("START swap requestid.%u\n",rp->requestid); if ( bitcoin_swapinit(myinfo,swap) != 0 ) {