Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
2a7ee4b366
  1. 4
      iguana/iguana777.c
  2. 2
      iguana/iguana_exchanges.c
  3. 4
      iguana/iguana_instantdex.c

4
iguana/iguana777.c

@ -129,7 +129,7 @@ double iguana_metric(struct iguana_peer *addr,uint32_t now,double decay)
return(metric);
}
int32_t iguana_inv2poll(struct supernet_info *myinfo,struct iguana_info *coin)
/*int32_t iguana_inv2poll(struct supernet_info *myinfo,struct iguana_info *coin)
{
struct exchange_info *exchange; int32_t i,n=0; struct iguana_peer *addr; char myipaddr[64];
expand_ipbits(myipaddr,myinfo->myaddr.myipbits);
@ -155,7 +155,7 @@ int32_t iguana_inv2poll(struct supernet_info *myinfo,struct iguana_info *coin)
}
}
return(n);
}
}*/
int32_t iguana_peermetrics(struct supernet_info *myinfo,struct iguana_info *coin)
{

2
iguana/iguana_exchanges.c

@ -602,7 +602,7 @@ void iguana_statemachineupdate(struct supernet_info *myinfo,struct exchange_info
if ( instantdex_recvquotes(coin,req,req->hashes,req->n) != 0 )
myfree(req->hashes,(req->n+1) * sizeof(*req->hashes)), req->hashes = 0;
}
iguana_inv2poll(myinfo,coin);
//iguana_inv2poll(myinfo,coin);
}
void exchanges777_loop(void *ptr)

4
iguana/iguana_instantdex.c

@ -928,7 +928,7 @@ struct instantdex_accept *instantdex_acceptable(struct supernet_info *myinfo,str
return(retap);
}
int32_t instantdex_inv2data(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr,struct exchange_info *exchange)
/*int32_t instantdex_inv2data(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr,struct exchange_info *exchange)
{
struct instantdex_accept *tmp,*ap; uint32_t now,n=0,len; bits256 encodedhash,hashes[100]; uint8_t serialized[100*36 + 1024];
//printf("instantdex_inv2data exchange.%p (%s)\n",exchange,addr->ipaddr);
@ -965,7 +965,7 @@ int32_t instantdex_inv2data(struct supernet_info *myinfo,struct iguana_info *coi
return(iguana_queue_send(addr,0,serialized,"inv2",len));
}
return(-1);
}
}*/
struct instantdex_accept *instantdex_quotefind(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr,bits256 encodedhash)
{

Loading…
Cancel
Save