From d1235459e2bea0465493ea579abb35fb8b7a22d7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 3 Dec 2016 16:56:27 -0300 Subject: [PATCH] test --- iguana/main.c | 3 +-- includes/iguana_funcs.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/main.c b/iguana/main.c index f855318c9..43d8cfd50 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -1587,8 +1587,6 @@ void iguana_main(void *arg) libgfshare_init(myinfo,myinfo->logs,myinfo->exps); myinfo->rpcport = IGUANA_RPCPORT; myinfo->dpowsock = myinfo->dexsock = myinfo->pubsock = myinfo->subsock = myinfo->reqsock = myinfo->repsock = -1; -//myinfo->rpcport = IGUANA_NOTARYPORT; -//myinfo->IAMNOTARY = 1; if ( arg != 0 ) { if ( strcmp((char *)arg,"OStests") == 0 ) @@ -1597,6 +1595,7 @@ void iguana_main(void *arg) { myinfo->rpcport = IGUANA_NOTARYPORT; myinfo->IAMNOTARY = 1; + dex_init(myinfo); } } #ifdef IGUANA_OSTESTS diff --git a/includes/iguana_funcs.h b/includes/iguana_funcs.h index 96972ebdb..10a2de86b 100755 --- a/includes/iguana_funcs.h +++ b/includes/iguana_funcs.h @@ -259,6 +259,7 @@ struct iguana_waddress *iguana_waccountadd(struct supernet_info *myinfo,struct i struct iguana_waddress *iguana_waccountswitch(struct supernet_info *myinfo,struct iguana_info *coin,char *account,char *coinaddr,char *redeemScript); struct iguana_waddress *iguana_waddresscalc(struct supernet_info *myinfo,uint8_t pubval,uint8_t wiftype,struct iguana_waddress *addr,bits256 privkey); struct iguana_waddress *iguana_waddressfind(struct supernet_info *myinfo,struct iguana_waccount *wacct,char *coinaddr); +void dex_init(struct supernet_info *myinfo); char *iguana_coinjson(struct iguana_info *coin,char *method,cJSON *json); cJSON *iguana_peersjson(struct iguana_info *coin,int32_t addronly); //int32_t btc_priv2wif(char *wifstr,uint8_t privkey[32],uint8_t addrtype);