Browse Source

Test

patch-3
jl777 7 years ago
parent
commit
35f3079b65
  1. 6
      iguana/exchanges/LP_rpc.c

6
iguana/exchanges/LP_rpc.c

@ -607,7 +607,7 @@ double _LP_getestimatedrate(struct iguana_info *coin)
{ {
if ( coin->estimatefeestr[0] == 0 ) if ( coin->estimatefeestr[0] == 0 )
strcpy(coin->estimatefeestr,"estimatefee"); strcpy(coin->estimatefeestr,"estimatefee");
numblocks = strcmp(coin->symbol,"BTC") == 0 ? 6 : 2; numblocks = 2;//strcmp(coin->symbol,"BTC") == 0 ? 6 : 2;
again: again:
if ( coin->electrum == 0 ) if ( coin->electrum == 0 )
{ {
@ -617,7 +617,11 @@ again:
else else
{ {
if ( (retjson= electrum_estimatefee(coin->symbol,coin->electrum,&retjson,numblocks)) != 0 ) if ( (retjson= electrum_estimatefee(coin->symbol,coin->electrum,&retjson,numblocks)) != 0 )
{
retstr = jprint(retjson,1); retstr = jprint(retjson,1);
free_json(retjson), retjson = 0;
printf("estfee (%s)\n",retstr);
}
} }
if ( retstr != 0 ) if ( retstr != 0 )
{ {

Loading…
Cancel
Save