Browse Source

Test

etomic
jl777 8 years ago
parent
commit
da1ef3662e
  1. 2
      iguana/exchanges/LP_coins.c
  2. 3
      iguana/exchanges/LP_prices.c
  3. 2
      iguana/exchanges/LP_rpc.c

2
iguana/exchanges/LP_coins.c

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

3
iguana/exchanges/LP_prices.c

@ -646,7 +646,8 @@ void LP_pricefeedupdate(bits256 pubkey,char *base,char *rel,double price)
//printf("check PRICEFEED UPDATE.(%s/%s) %.8f %s\n",base,rel,price,bits256_str(str,pubkey));
if ( price > SMALLVAL && (basepp= LP_priceinfofind(base)) != 0 && (relpp= LP_priceinfofind(rel)) != 0 )
{
printf("PRICEFEED UPDATE.(%s/%s) %.8f %s %.8f\n",base,rel,price,bits256_str(str,pubkey),1./price);
if ( fabs(basepp->relvals[relpp->ind] - price) > SMALLVAL )
printf("PRICEFEED UPDATE.(%s/%s) %.8f %s %.8f\n",base,rel,price,bits256_str(str,pubkey),1./price);
if ( (pubp= LP_pubkeyadd(pubkey)) != 0 )
{
pubp->matrix[basepp->ind][relpp->ind] = price;

2
iguana/exchanges/LP_rpc.c

@ -294,7 +294,7 @@ cJSON *LP_importprivkey(char *symbol,char *wifstr,char *label,int32_t flag)
{
if ( coin->noimportprivkey_flag != 0 )
sprintf(buf,"[\"%s\"]",wifstr);
else sprintf(buf,"[\"%s\", \"%s\", %s]",wifstr,label,flag < 0 ? "false" : "true");
else sprintf(buf,"\"%s\", \"%s\", %s",wifstr,label,flag < 0 ? "false" : "true");
return(bitcoin_json(coin,"importprivkey",buf));
} else return(cJSON_Parse("{\"result\":\"success\"}"));
}

Loading…
Cancel
Save