|
|
@ -631,7 +631,7 @@ again: |
|
|
|
if ( strcmp(coin->estimatefeestr,"estimatesmartfee") == 0 && (rate= jdouble(errjson,"feerate")) != 0 ) |
|
|
|
{ |
|
|
|
printf("extracted feerate %.8f from estimatesmartfee\n",rate); |
|
|
|
rate /= 1024; |
|
|
|
rate /= 1024.; |
|
|
|
} |
|
|
|
free_json(errjson); |
|
|
|
} |
|
|
@ -639,8 +639,13 @@ again: |
|
|
|
rate = atof(retstr) / 1024.; |
|
|
|
if ( rate != 0. ) |
|
|
|
{ |
|
|
|
//if ( rate < 0.00000020 )
|
|
|
|
// rate = 0.00000020;
|
|
|
|
if ( strcmp("BTC",coin->symbol) == 0 ) |
|
|
|
{ |
|
|
|
if ( rate < 0.00000100 ) |
|
|
|
rate = 0.00000100; |
|
|
|
} |
|
|
|
else if ( rate < 0.00000020 ) |
|
|
|
rate = 0.00000020; |
|
|
|
rate *= 1.5; |
|
|
|
if ( coin->electrum != 0 ) |
|
|
|
rate *= 1.5; |
|
|
|