Browse Source

test

etomic
jl777 8 years ago
parent
commit
00380e95e4
  1. 4
      iguana/kmd_lookup.h

4
iguana/kmd_lookup.h

@ -463,7 +463,7 @@ cJSON *kmd_getbalance(struct iguana_info *coin,char *coinaddr)
netbalance += dstr(r); netbalance += dstr(r);
netbalance -= dstr(s); netbalance -= dstr(s);
if ( (r - s) > 100000*SATOSHIDEN ) if ( (r - s) > 100000*SATOSHIDEN )
printf("{\"address\":\"%s\",\"received\":%.8f,\"sent\":%.8f,\"balance\":%.8f,\"supply\":%.8f,\"supplyf\":%.8f}\n",address,dstr(r),dstr(s),dstr(r)-dstr(s),dstr(balance),netbalance+1./(SATOSHIDEN*2)); printf("{\"address\":\"%s\",\"received\":%.8f,\"sent\":%.8f,\"balance\":%.8f,\"supply\":%.8f,\"supplyf\":%.8f}\n",address,dstr(r),dstr(s),dstr(r)-dstr(s),dstr(balance),netbalance);
received += r; received += r;
sent += s; sent += s;
} }
@ -479,7 +479,7 @@ cJSON *kmd_getbalance(struct iguana_info *coin,char *coinaddr)
jaddnum(retjson,"received",dstr(received)); jaddnum(retjson,"received",dstr(received));
jaddnum(retjson,"sent",dstr(sent)); jaddnum(retjson,"sent",dstr(sent));
//if ( fabs(netbalance*SATOSHIDEN - balance) > 1 ) //if ( fabs(netbalance*SATOSHIDEN - balance) > 1 )
jaddnum(retjson,"balancef",netbalance); jaddnum(retjson,"balancef",netbalance+1./(SATOSHIDEN*2));
//else //else
jaddnum(retjson,"balance",dstr(balance)); jaddnum(retjson,"balance",dstr(balance));
jaddnum(retjson,"height",height); jaddnum(retjson,"height",height);

Loading…
Cancel
Save