Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
1e547ea188
  1. 2
      iguana/iguana_accept.c
  2. 5
      iguana/iguana_instantdex.c

2
iguana/iguana_accept.c

@ -178,7 +178,7 @@ void iguana_msgrequestQ(struct iguana_info *coin,struct iguana_peer *addr,int32_
int32_t iguana_process_msgrequestQ(struct supernet_info *myinfo,struct iguana_info *coin)
{
struct iguana_peermsgrequest *msg; struct instantdex_accept *ap; int32_t height,len,flag = 0; bits256 checktxid; struct iguana_txid *tx,T; struct iguana_peer *addr;
struct iguana_peermsgrequest *msg; int32_t height,len,flag = 0; bits256 checktxid; struct iguana_txid *tx,T; struct iguana_peer *addr;
if ( (msg= queue_dequeue(&coin->msgrequestQ,0)) != 0 )
{
flag = 1;

5
iguana/iguana_instantdex.c

@ -825,6 +825,7 @@ struct instantdex_accept *instantdex_quotefind(struct supernet_info *myinfo,stru
{
char base[9],rel[9]; int64_t pricetoshis; uint64_t orderid;
orderid = instantdex_decodehash(base,rel,&pricetoshis,encodedhash);
printf("search for orderid.%lld (%s/%s) %.8f\n",(long long)orderid,base,rel,dstr(pricetoshis));
return(instantdex_offerfind(myinfo,exchanges777_find("bitcoin"),0,0,orderid,base,rel,1));
}
@ -893,8 +894,8 @@ void instantdex_propagate(struct supernet_info *myinfo,struct exchange_info *exc
for (i=0; i<coin->peers.numranked; i++)
if ( (addr= coin->peers.ranked[i]) != 0 && addr->supernet != 0 && addr->usock >= 0 && GETBIT(ap->peerhas,addr->addrind) == 0 && strcmp("0.0.0.0",addr->ipaddr) != 0 && strcmp("127.0.0.1",addr->ipaddr) != 0 )
{
SETBIT(ap->peerhas,addr->addrind);
printf("send quote.(%s) <- [%d]\n",addr->ipaddr,len);
//SETBIT(ap->peerhas,addr->addrind);
char str[65]; printf("send quote.(%s) <- [%d] %s\n",addr->ipaddr,len,bits256_str(str,orderhash));
iguana_queue_send(coin,addr,0,serialized,"quote",len,0,0);
}
}

Loading…
Cancel
Save