From e9cbf32b919dc269d532266b94dc0e80468e3dfe Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 12 May 2016 23:21:40 -0500 Subject: [PATCH] test --- iguana/iguana777.h | 2 +- iguana/iguana_accept.c | 1 + iguana/iguana_instantdex.c | 2 +- iguana/iguana_peers.c | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/iguana/iguana777.h b/iguana/iguana777.h index ae32cec9d..1c6967ebe 100755 --- a/iguana/iguana777.h +++ b/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); 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_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); void instantdex_update(struct supernet_info *myinfo); cJSON *iguana_getaddressesbyaccount(struct supernet_info *myinfo,struct iguana_info *coin,char *account); diff --git a/iguana/iguana_accept.c b/iguana/iguana_accept.c index 94b8ea5ab..d6af4be5a 100755 --- a/iguana/iguana_accept.c +++ b/iguana/iguana_accept.c @@ -105,6 +105,7 @@ void iguana_acceptloop(void *args) coin->peers.active[i].usock = sock; coin->peers.active[i].ready = (uint32_t)time(NULL); flag = 1; + instantdex_peerhas_clear(coin,&coin->peers.active[i]); //iguana_iAkill(coin,&coin->peers.active[i],0); //sleep(1); break; diff --git a/iguana/iguana_instantdex.c b/iguana/iguana_instantdex.c index ab255f093..9ad15bd0a 100755 --- a/iguana/iguana_instantdex.c +++ b/iguana/iguana_instantdex.c @@ -740,7 +740,7 @@ struct instantdex_accept *instantdex_offerfind(struct supernet_info *ignore,stru 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; if ( addr != 0 && (exchange= exchanges777_find("bitcoin")) != 0 ) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 7fac071a7..2a6f59712 100755 --- a/iguana/iguana_peers.c +++ b/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"); return; } - instantdex_peerhas_clear(myinfo,coin,addr); + instantdex_peerhas_clear(coin,addr); #ifdef IGUANA_PEERALLOC int32_t i; int64_t remaining; struct OS_memspace *mem[sizeof(addr->SEROUT)/sizeof(*addr->SEROUT)]; for (i=0; iSEROUT)/sizeof(*addr->SEROUT); i++)