Browse Source

test

etomic
jl777 8 years ago
parent
commit
e91a9e376f
  1. 4
      basilisk/basilisk_DEX.c

4
basilisk/basilisk_DEX.c

@ -234,7 +234,7 @@ char *basilisk_start(struct supernet_info *myinfo,struct basilisk_request *_rp,u
cJSON *retjson; struct basilisk_request *rp=0; int32_t i; cJSON *retjson; struct basilisk_request *rp=0; int32_t i;
if ( _rp->requestid == myinfo->lastdexrequestid ) if ( _rp->requestid == myinfo->lastdexrequestid )
{ {
printf("filter duplicate r%u\n",_rp->requestid); //printf("filter duplicate r%u\n",_rp->requestid);
return(clonestr("{\"error\":\"filter duplicate requestid\"}")); return(clonestr("{\"error\":\"filter duplicate requestid\"}"));
} }
if ( (bits256_cmp(_rp->srchash,myinfo->myaddr.persistent) == 0 || bits256_cmp(_rp->desthash,myinfo->myaddr.persistent) == 0) ) if ( (bits256_cmp(_rp->srchash,myinfo->myaddr.persistent) == 0 || bits256_cmp(_rp->desthash,myinfo->myaddr.persistent) == 0) )
@ -342,7 +342,7 @@ void basilisk_requests_poll(struct supernet_info *myinfo)
issueR.desthash = myinfo->myaddr.persistent; issueR.desthash = myinfo->myaddr.persistent;
datalen = basilisk_rwDEXquote(1,data,&issueR); datalen = basilisk_rwDEXquote(1,data,&issueR);
msgid = (uint32_t)time(NULL); msgid = (uint32_t)time(NULL);
printf("other req hwm %f >>>>>>>>>>> send response (%llx -> %llx) quoteid.%u\n",hwm,(long long)issueR.desthash.txid,(long long)issueR.srchash.txid,issueR.quoteid); printf("other req hwm %f >>>>>>>>>>> send response (%llx -> %llx) last.%u r.%u quoteid.%u\n",hwm,(long long)issueR.desthash.txid,(long long)issueR.srchash.txid,myinfo->lastdexrequestid,issueR.requestid,issueR.quoteid);
dex_channelsend(myinfo,issueR.desthash,issueR.srchash,channel,msgid,data,datalen); //INSTANTDEX_LOCKTIME*2 dex_channelsend(myinfo,issueR.desthash,issueR.srchash,channel,msgid,data,datalen); //INSTANTDEX_LOCKTIME*2
dpow_nanomsg_update(myinfo); dpow_nanomsg_update(myinfo);
dex_updateclient(myinfo); dex_updateclient(myinfo);

Loading…
Cancel
Save