From 681e127914cdb17a500b8e35ba379e6746a31424 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 4 Apr 2018 15:41:01 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_instantdex.c | 3 +++ iguana/exchanges/LP_nativeDEX.c | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_instantdex.c b/iguana/exchanges/LP_instantdex.c index 61e962ea4..c163f8a71 100644 --- a/iguana/exchanges/LP_instantdex.c +++ b/iguana/exchanges/LP_instantdex.c @@ -88,6 +88,7 @@ void LP_instantdex_filescreate(char *coinaddr) { if ( (fp= fopen(fname,"wb+")) != 0 ) { + printf("created %s\n"); for (i=0; i<2; i++) { if ( (array= LP_instantdex_txids(i,coinaddr)) != 0 ) @@ -97,10 +98,12 @@ void LP_instantdex_filescreate(char *coinaddr) for (j=0; jsymbol); continue; } + if ( didfilescreate == 0 && strcmp("KMD",coin->symbol) == 0 ) + { + LP_instantdex_filescreate(coin->smartaddr); + didfilescreate = 1; + } memset(&zero,0,sizeof(zero)); if ( coin->inactive != 0 ) continue; @@ -818,7 +824,6 @@ void LP_initcoins(void *ctx,int32_t pubsock,cJSON *coins) { LP_importaddress("KMD",BOTS_BONDADDRESS); LP_dPoW_request(coin); - LP_instantdex_filescreate(coin->smartaddr); } } if ( coin->txfee == 0 && strcmp(coin->symbol,"BTC") != 0 )