Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
ab382c6258
  1. 10
      iguana/iguana_wallet.c

10
iguana/iguana_wallet.c

@ -1063,12 +1063,12 @@ ZERO_ARGS(bitcoinrpc,getinfo)
jaddnum(retjson,"protocolversion",PROTOCOL_VERSION);
jaddnum(retjson,"kbfee",dstr(coin->txfee_perkb));
jaddnum(retjson,"txfee",dstr(coin->txfee));
if ( coin->bundlescount > 0 )
if ( coin->bundlescount > 1 )
{
jaddnum(retjson,"bundles",100. * (double)iguana_emitfinished(coin,0)/coin->bundlescount);
jaddnum(retjson,"utxo",100. * (double)iguana_utxofinished(coin)/coin->bundlescount);
jaddnum(retjson,"balances",100. * (double)iguana_balancefinished(coin)/coin->bundlescount);
jaddnum(retjson,"validated",100. * (double)iguana_validated(coin)/coin->bundlescount);
jaddnum(retjson,"bundles",100. * (double)iguana_emitfinished(coin,0)/(coin->bundlescount-1));
jaddnum(retjson,"utxo",100. * (double)iguana_utxofinished(coin)/(coin->bundlescount-1));
jaddnum(retjson,"balances",100. * (double)iguana_balancefinished(coin)/(coin->bundlescount-1));
jaddnum(retjson,"validated",100. * (double)iguana_validated(coin)/(coin->bundlescount-1));
}
jaddnum(retjson,"firstRTheight",coin->firstRTheight);
jaddnum(retjson,"RTheight",coin->RTheight);

Loading…
Cancel
Save