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

Loading…
Cancel
Save