Browse Source

Test

etomic
jl777 7 years ago
parent
commit
912c4d8073
  1. 2
      iguana/exchanges/LP_rpc.c
  2. 2
      iguana/exchanges/LP_socket.c

2
iguana/exchanges/LP_rpc.c

@ -375,7 +375,7 @@ double LP_getestimatedrate(struct iguana_info *coin)
{
sprintf(buf,"[%d]",3);
printf("estimate fee\n");
if ( (retstr= LP_apicall(coin,"estimatefee",buf)) != 0 )
if ( (retstr= LP_apicall(coin,coin->electrum==0?"estimatefee" : "blockchain.estimatefee",buf)) != 0 )
{
if ( retstr[0] != '-' )
{

2
iguana/exchanges/LP_socket.c

@ -665,7 +665,7 @@ cJSON *LP_electrumserver(struct iguana_info *coin,char *ipaddr,uint16_t port)
jaddstr(retjson,"result","success");
jaddstr(retjson,"status","already there");
}
printf("(%s)\n",jprint(retjson,0));
//printf("(%s)\n",jprint(retjson,0));
return(retjson);
}

Loading…
Cancel
Save