Browse Source

test

etomic
jl777 8 years ago
parent
commit
6491b719cc
  1. 6
      basilisk/basilisk_swap.c

6
basilisk/basilisk_swap.c

@ -1726,6 +1726,8 @@ void basilisk_swaploop(void *_swap)
break;
}
sleep(1);//3 + (swap->iambob == 0)*10);
dpow_nanomsg_update(myinfo);
dex_updateclient(myinfo);
}
if ( time(NULL) >= expiration )
retval = -1;
@ -1733,6 +1735,8 @@ void basilisk_swaploop(void *_swap)
printf("C r%u/q%u swapstate.%x\n",swap->I.req.requestid,swap->I.req.quoteid,swap->I.statebits);
while ( retval == 0 && (swap->I.statebits & 0x40) == 0 ) // send fee
{
dpow_nanomsg_update(myinfo);
dex_updateclient(myinfo);
basilisk_sendstate(myinfo,swap,data,maxlen);
basilisk_swapget(myinfo,swap,0x80000000,data,maxlen,basilisk_verify_otherstatebits);
if ( swap->myfee.txbytes == 0 )
@ -1816,6 +1820,8 @@ void basilisk_swaploop(void *_swap)
basilisk_swapget(myinfo,swap,0x80000000,data,maxlen,basilisk_verify_otherstatebits);
if ( time(NULL) > swap->I.expiration )
break;
dpow_nanomsg_update(myinfo);
dex_updateclient(myinfo);
}
printf("end of atomic swap\n");
if ( swap->I.iambob != 0 && swap->bobdeposit.txbytes != 0 )

Loading…
Cancel
Save