diff --git a/iguana/SuperNET.h b/iguana/SuperNET.h index ff657bd03..6867939ae 100644 --- a/iguana/SuperNET.h +++ b/iguana/SuperNET.h @@ -164,6 +164,7 @@ void category_init(struct supernet_info *myinfo); char *SuperNET_keysinit(struct supernet_info *myinfo,char *jsonstr); double instantdex_aveprice(struct supernet_info *myinfo,struct exchange_quote *sortbuf,int32_t max,double *totalvolp,char *base,char *rel,double volume,cJSON *argjson); void SuperNET_setkeys(struct supernet_info *myinfo,void *pass,int32_t passlen,int32_t dosha256); +char *InstantDEX_hexmsg(struct supernet_info *myinfo,void *data,int32_t len,char *remoteaddr); #endif diff --git a/iguana/SuperNET_category.c b/iguana/SuperNET_category.c index 9c49f77f5..785f0bd16 100644 --- a/iguana/SuperNET_category.c +++ b/iguana/SuperNET_category.c @@ -332,11 +332,15 @@ char *SuperNET_categorymulticast(struct supernet_info *myinfo,int32_t surveyflag void category_init(struct supernet_info *myinfo) { - bits256 pangeahash; + bits256 pangeahash,instantdexhash; //exchanges777_init(0); category_subscribe(myinfo,GENESIS_PUBKEY,GENESIS_PUBKEY); pangeahash = calc_categoryhashes(0,"pangea",0); category_subscribe(myinfo,pangeahash,GENESIS_PUBKEY); category_processfunc(pangeahash,pangea_hexmsg); category_chain_functions(myinfo,pangeahash,GENESIS_PUBKEY,sizeof(bits256),sizeof(bits256),0,0,0,0); + instantdexhash = calc_categoryhashes(0,"InstantDEX",0); + printf("InstantDEX:\n"); + category_subscribe(myinfo,instantdexhash,GENESIS_PUBKEY); + category_processfunc(instantdexhash,InstantDEX_hexmsg); } diff --git a/iguana/exchanges777.h b/iguana/exchanges777.h index 76748f042..f27523c77 100755 --- a/iguana/exchanges777.h +++ b/iguana/exchanges777.h @@ -72,7 +72,6 @@ struct exchange_request }; void *curl_post(void **cHandlep,char *url,char *userpass,char *postfields,char *hdr0,char *hdr1,char *hdr2,char *hdr3); -char *InstantDEX_hexmsg(struct supernet_info *myinfo,void *data,int32_t len,char *remoteaddr); char *instantdex_sendcmd(struct supernet_info *myinfo,cJSON *argjson,char *cmdstr,char *ipaddr,int32_t hops); char *exchanges777_Qprices(struct exchange_info *exchange,char *base,char *rel,int32_t maxseconds,int32_t allfields,int32_t depth,cJSON *argjson,int32_t monitor,double commission); struct exchange_info *exchanges777_info(char *exchangestr,int32_t sleepflag,cJSON *json,char *remoteaddr); diff --git a/iguana/main.c b/iguana/main.c index e24d868b1..8eb37001e 100644 --- a/iguana/main.c +++ b/iguana/main.c @@ -346,7 +346,7 @@ void iguana_main(void *arg) category_init(&MYINFO); if ( (coinargs= SuperNET_keysinit(&MYINFO,arg)) != 0 ) iguana_launch(iguana_coinadd("BTCD"),"iguana_coins",iguana_coins,coinargs,IGUANA_PERMTHREAD); - else if ( 0 ) + else if ( 1 ) { #ifdef __APPLE__ sleep(1);