Browse Source

Test

patch-3
jl777 7 years ago
parent
commit
10569cc5a0
  1. 12
      iguana/exchanges/LP_rpc.c

12
iguana/exchanges/LP_rpc.c

@ -628,13 +628,19 @@ again:
rate = 0.; rate = 0.;
err++; err++;
} }
if ( strcmp(coin->estimatefeestr,"estimatesmartfee") == 0 && (rate= jdouble(errjson,"feerate")) != 0 )
{
printf("extracted feerate %.8f from estimatesmartfee\n",rate);
rate /= 1024;
}
free_json(errjson); free_json(errjson);
} }
else if ( retstr[0] != '-' ) else if ( retstr[0] != '-' )
{
rate = atof(retstr) / 1024.; rate = atof(retstr) / 1024.;
if ( rate < 0.00000020 ) if ( rate != 0. )
rate = 0.00000020; {
//if ( rate < 0.00000020 )
// rate = 0.00000020;
rate *= 1.5; rate *= 1.5;
if ( coin->electrum != 0 ) if ( coin->electrum != 0 )
rate *= 1.5; rate *= 1.5;

Loading…
Cancel
Save