jl777 7 years ago
parent
commit
8eba304588
  1. 2
      iguana/exchanges/LP_rpc.c

2
iguana/exchanges/LP_rpc.c

@ -602,7 +602,7 @@ double LP_getestimatedrate(struct iguana_info *coin)
return(0.0001);
if ( strcmp(coin->symbol,"BTC") == 0 || coin->txfee == 0 || coin->rate == 0. )
{
if ( coin->rate == 0. || time(NULL) > coin->ratetime )
if ( strcmp(coin->symbol,"BTC") == 0 || coin->rate == 0. || time(NULL) > coin->ratetime )
{
sprintf(buf,"[%d]",strcmp(coin->symbol,"BTC") == 0 ? 6 : 2);
if ( (retstr= LP_apicall(coin,coin->electrum==0?"estimatefee" : "blockchain.estimatefee",buf)) != 0 )

Loading…
Cancel
Save