Browse Source

test

etomic
jl777 8 years ago
parent
commit
21de255df9
  1. 4
      basilisk/basilisk_swap.c
  2. 2
      basilisk/basilisk_tradebot.c

4
basilisk/basilisk_swap.c

@ -1899,8 +1899,8 @@ struct basilisk_swap *basilisk_thread_start(struct supernet_info *myinfo,struct
while ( statebits == 0 && m <= n/2 && time(NULL) < starttime+BASILISK_MSGDURATION )
{
m = n = 0;
//dpow_nanomsg_update(myinfo);
//dex_updateclient(myinfo);
dpow_nanomsg_update(myinfo);
dex_updateclient(myinfo);
sleep(3);
printf("waiting for offer to be accepted\n");
channel = 'D' + ((uint32_t)'E' << 8) + ((uint32_t)'X' << 16);

2
basilisk/basilisk_tradebot.c

@ -361,7 +361,7 @@ double basilisk_request_listprocess(struct supernet_info *myinfo,struct basilisk
*issueR = list[maxi];
for (i=0; i<sizeof(*issueR); i++)
printf("%02x",((uint8_t *)issueR)[i]);
printf(" automatch[%d] quoteid.%u triggered %.8f > %.8f\n",maxi,list[maxi].quoteid,dstr(maxamount),dstr(minamount));
printf(" automatch[%d] r.%u quoteid.%u triggered %.8f > %.8f\n",maxi,list[maxi].requestid,list[maxi].quoteid,dstr(maxamount),dstr(minamount));
if ( minamount > 0 )
metric = (dstr(maxamount) / dstr(minamount)) - 1.;
else metric = 1.;

Loading…
Cancel
Save