From 356953a6bc97f224eb55aeaaf5bbe0a1a3ebcf67 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 21 May 2017 16:25:13 +0300 Subject: [PATCH] Test --- basilisk/basilisk_swap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index a40a8e03c..2016af74e 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -2804,10 +2804,15 @@ struct basilisk_swap *basilisk_thread_start(struct supernet_info *myinfo,bits256 printf("statebits.%x m.%d n.%d\n",statebits,m,n); while ( statebits == 0 && m <= n/2 && time(NULL) < starttime+7*BASILISK_MSGDURATION ) { + uint32_t msgid; uint8_t data[1024]; int32_t datalen; m = n = 0; sleep(DEX_SLEEP); printf("waiting for offer to be accepted\n"); channel = 'D' + ((uint32_t)'E' << 8) + ((uint32_t)'X' << 16); + datalen = basilisk_rwDEXquote(1,data,rp); + msgid = (uint32_t)time(NULL); + printf("other req.%d >>>>>>>>>>> send response (%llx -> %llx) last.%u r.%u quoteid.%u\n",i,(long long)rp->desthash.txid,(long long)rp->srchash.txid,myinfo->lastdexrequestid,rp->requestid,rp->quoteid); + dex_channelsend(myinfo,rp->desthash,rp->srchash,channel,msgid,data,datalen); if ( (retarray= basilisk_channelget(myinfo,rp->srchash,rp->desthash,channel,0x4000000,30)) != 0 ) { if ( is_cJSON_Array(retarray) != 0 && (n= cJSON_GetArraySize(retarray)) > 0 )