From 8205b9e4583075861c3a5619282725fbb59f292a Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 21 Jun 2017 11:17:42 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_coins.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/iguana/exchanges/LP_coins.c b/iguana/exchanges/LP_coins.c index 2634b914e..83d01b2c8 100644 --- a/iguana/exchanges/LP_coins.c +++ b/iguana/exchanges/LP_coins.c @@ -245,13 +245,7 @@ struct iguana_info *LP_coinfind(char *symbol) } else if ( strcmp(symbol,"KMD") == 0 ) name = "komodo"; - else if ( strcmp(symbol,"HUSH") == 0 ) - name = "hush"; - else - { - name = symbol; - assetname = symbol; - } + else return(0); LP_coininit(&cdata,symbol,name,assetname,isPoS,port,pubtype,p2shtype,wiftype,txfee,estimatedrate,longestchain,0); if ( (coin= LP_coinadd(&cdata)) != 0 && strcmp(symbol,"KMD") == 0 ) coin->inactive = 0; @@ -281,6 +275,8 @@ struct iguana_info *LP_coincreate(cJSON *item) name = assetname; else if ( (name= jstr(item,"name")) == 0 ) name = symbol; + if ( strcmp(symbol,"HUSH") == 0 ) + printf("init HUSH %s %s %s\n",symbol,name,assetname); LP_coininit(&cdata,symbol,name,assetname==0?"":assetname,isPoS,port,pubtype,p2shtype,wiftype,txfee,estimatedrate,longestchain,jint(item,"taddr")); coin = LP_coinadd(&cdata); }