Browse Source

Test

etomic
jl777 8 years ago
parent
commit
bc93f83ea7
  1. 4
      iguana/exchanges/LP_rpc.c

4
iguana/exchanges/LP_rpc.c

@ -149,8 +149,8 @@ uint64_t LP_getestimatedrate(char *symbol)
char buf[512],*retstr; uint64_t rate = 200; struct iguana_info *coin = LP_coinfind(symbol);
if ( coin != 0 )
{
sprintf(buf,"[\"%d\"]",3);
if ( (retstr= bitcoind_passthru(symbol,coin->serverport,coin->userpass,"importaddress",buf)) != 0 )
sprintf(buf,"[%d]",3);
if ( (retstr= bitcoind_passthru(symbol,coin->serverport,coin->userpass,"estimatefee",buf)) != 0 )
{
rate = atof(retstr);
printf("estimated rate %s -> %llu\n",retstr,(long long)rate);

Loading…
Cancel
Save