Browse Source

Test

etomic
jl777 8 years ago
parent
commit
db7693792a
  1. 5
      iguana/exchanges/LP_coins.c
  2. 4
      iguana/exchanges/LP_commands.c

5
iguana/exchanges/LP_coins.c

@ -235,8 +235,11 @@ int32_t LP_coininit(struct iguana_info *coin,char *symbol,char *name,char *asset
if ( strcmp(symbol,"KMD") == 0 || (assetname != 0 && assetname[0] != 0) ) if ( strcmp(symbol,"KMD") == 0 || (assetname != 0 && assetname[0] != 0) )
name2 = 0; name2 = 0;
else name2 = name; else name2 = name;
if ( strcmp(symbol,"XVG") == 0 ) if ( strcmp(symbol,"XVG") == 0 || strcmp(symbol,"NLG") == 0 )
{
coin->noimportprivkey_flag = 1; coin->noimportprivkey_flag = 1;
printf("truncate importprivkey for %s\n",symbol);
}
return(LP_userpass(coin->userpass,symbol,assetname,name,name2)); return(LP_userpass(coin->userpass,symbol,assetname,name,name2));
} }

4
iguana/exchanges/LP_commands.c

@ -155,6 +155,10 @@ trust(pubkey, trust)\n\
LP_deletemessages(jint(argjson,"firsti"),jint(argjson,"num")); LP_deletemessages(jint(argjson,"firsti"),jint(argjson,"num"));
return(clonestr("{\"result\":\"success\"}")); return(clonestr("{\"result\":\"success\"}"));
} }
else if ( strcmp(method,"portfolio") == 0 )
{
return(LP_portfolio());
}
if ( base != 0 && rel != 0 ) if ( base != 0 && rel != 0 )
{ {
double price,bid,ask; double price,bid,ask;

Loading…
Cancel
Save