Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
e9cbf32b91
  1. 2
      iguana/iguana777.h
  2. 1
      iguana/iguana_accept.c
  3. 2
      iguana/iguana_instantdex.c
  4. 2
      iguana/iguana_peers.c

2
iguana/iguana777.h

@ -966,7 +966,7 @@ struct iguana_waddress *iguana_getaccountaddress(struct supernet_info *myinfo,st
int32_t iguana_uvaltxid(struct supernet_info *myinfo,bits256 *txidp,struct iguana_info *coin,int16_t hdrsi,uint32_t unspentind); int32_t iguana_uvaltxid(struct supernet_info *myinfo,bits256 *txidp,struct iguana_info *coin,int16_t hdrsi,uint32_t unspentind);
struct instantdex_accept *instantdex_quotefind(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr,bits256 encodedhash); struct instantdex_accept *instantdex_quotefind(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr,bits256 encodedhash);
int32_t instantdex_quoterequest(struct supernet_info *myinfo,struct iguana_info *coin,uint8_t *serialized,int32_t maxlen,struct iguana_peer *addr,bits256 encodedhash); int32_t instantdex_quoterequest(struct supernet_info *myinfo,struct iguana_info *coin,uint8_t *serialized,int32_t maxlen,struct iguana_peer *addr,bits256 encodedhash);
int32_t instantdex_peerhas_clear(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr); int32_t instantdex_peerhas_clear(struct iguana_info *coin,struct iguana_peer *addr);
int32_t instantdex_quotep2p(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr,uint8_t *serialized,int32_t recvlen); int32_t instantdex_quotep2p(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr,uint8_t *serialized,int32_t recvlen);
void instantdex_update(struct supernet_info *myinfo); void instantdex_update(struct supernet_info *myinfo);
cJSON *iguana_getaddressesbyaccount(struct supernet_info *myinfo,struct iguana_info *coin,char *account); cJSON *iguana_getaddressesbyaccount(struct supernet_info *myinfo,struct iguana_info *coin,char *account);

1
iguana/iguana_accept.c

@ -105,6 +105,7 @@ void iguana_acceptloop(void *args)
coin->peers.active[i].usock = sock; coin->peers.active[i].usock = sock;
coin->peers.active[i].ready = (uint32_t)time(NULL); coin->peers.active[i].ready = (uint32_t)time(NULL);
flag = 1; flag = 1;
instantdex_peerhas_clear(coin,&coin->peers.active[i]);
//iguana_iAkill(coin,&coin->peers.active[i],0); //iguana_iAkill(coin,&coin->peers.active[i],0);
//sleep(1); //sleep(1);
break; break;

2
iguana/iguana_instantdex.c

@ -740,7 +740,7 @@ struct instantdex_accept *instantdex_offerfind(struct supernet_info *ignore,stru
return(retap); return(retap);
} }
int32_t instantdex_peerhas_clear(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr) int32_t instantdex_peerhas_clear(struct iguana_info *coin,struct iguana_peer *addr)
{ {
struct instantdex_accept PAD,*ap; struct exchange_info *exchange; int32_t ind,num = 0; struct instantdex_accept PAD,*ap; struct exchange_info *exchange; int32_t ind,num = 0;
if ( addr != 0 && (exchange= exchanges777_find("bitcoin")) != 0 ) if ( addr != 0 && (exchange= exchanges777_find("bitcoin")) != 0 )

2
iguana/iguana_peers.c

@ -1060,7 +1060,7 @@ void iguana_dedicatedloop(struct supernet_info *myinfo,struct iguana_info *coin,
printf("error creating peer's files\n"); printf("error creating peer's files\n");
return; return;
} }
instantdex_peerhas_clear(myinfo,coin,addr); instantdex_peerhas_clear(coin,addr);
#ifdef IGUANA_PEERALLOC #ifdef IGUANA_PEERALLOC
int32_t i; int64_t remaining; struct OS_memspace *mem[sizeof(addr->SEROUT)/sizeof(*addr->SEROUT)]; int32_t i; int64_t remaining; struct OS_memspace *mem[sizeof(addr->SEROUT)/sizeof(*addr->SEROUT)];
for (i=0; i<sizeof(addr->SEROUT)/sizeof(*addr->SEROUT); i++) for (i=0; i<sizeof(addr->SEROUT)/sizeof(*addr->SEROUT); i++)

Loading…
Cancel
Save