Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
654690e009
  1. 2
      basilisk/basilisk_DEX.c
  2. 3
      basilisk/basilisk_swap.c

2
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\"}"));

3
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 )
{

Loading…
Cancel
Save