Browse Source

Test

etomic
jl777 8 years ago
parent
commit
8205b9e458
  1. 10
      iguana/exchanges/LP_coins.c

10
iguana/exchanges/LP_coins.c

@ -245,13 +245,7 @@ struct iguana_info *LP_coinfind(char *symbol)
} }
else if ( strcmp(symbol,"KMD") == 0 ) else if ( strcmp(symbol,"KMD") == 0 )
name = "komodo"; name = "komodo";
else if ( strcmp(symbol,"HUSH") == 0 ) else return(0);
name = "hush";
else
{
name = symbol;
assetname = symbol;
}
LP_coininit(&cdata,symbol,name,assetname,isPoS,port,pubtype,p2shtype,wiftype,txfee,estimatedrate,longestchain,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 ) if ( (coin= LP_coinadd(&cdata)) != 0 && strcmp(symbol,"KMD") == 0 )
coin->inactive = 0; coin->inactive = 0;
@ -281,6 +275,8 @@ struct iguana_info *LP_coincreate(cJSON *item)
name = assetname; name = assetname;
else if ( (name= jstr(item,"name")) == 0 ) else if ( (name= jstr(item,"name")) == 0 )
name = symbol; 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")); LP_coininit(&cdata,symbol,name,assetname==0?"":assetname,isPoS,port,pubtype,p2shtype,wiftype,txfee,estimatedrate,longestchain,jint(item,"taddr"));
coin = LP_coinadd(&cdata); coin = LP_coinadd(&cdata);
} }

Loading…
Cancel
Save