mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
increase precision of printed fee
This commit is contained in:
parent
e29a7ba133
commit
639be9d767
2 changed files with 4 additions and 4 deletions
|
@ -168,7 +168,7 @@ MempoolStatus::read_mempool()
|
|||
last_tx.mixin_no = sum_data[2];
|
||||
last_tx.num_nonrct_inputs = sum_data[3];
|
||||
|
||||
last_tx.fee_str = xmreg::xmr_amount_to_str(_tx_info.fee, "{:0.3f}", false);
|
||||
last_tx.fee_str = xmreg::xmr_amount_to_str(_tx_info.fee, "{:0.4f}", false);
|
||||
last_tx.payed_for_kB_str = fmt::format("{:0.4f}", payed_for_kB);
|
||||
last_tx.xmr_inputs_str = xmreg::xmr_amount_to_str(last_tx.sum_inputs , "{:0.3f}");
|
||||
last_tx.xmr_outputs_str = xmreg::xmr_amount_to_str(last_tx.sum_outputs, "{:0.3f}");
|
||||
|
|
|
@ -256,8 +256,8 @@ struct tx_details
|
|||
|
||||
mixin_str = std::to_string(mixin_no);
|
||||
fee_str = fmt::format("{:0.6f}", xmr_amount);
|
||||
fee_short_str = fmt::format("{:0.3f}", xmr_amount);
|
||||
payed_for_kB_str = fmt::format("{:0.3f}", payed_for_kB);
|
||||
fee_short_str = fmt::format("{:0.4f}", xmr_amount);
|
||||
payed_for_kB_str = fmt::format("{:0.4f}", payed_for_kB);
|
||||
}
|
||||
|
||||
|
||||
|
@ -5542,7 +5542,7 @@ json_emission()
|
|||
|
||||
string emission_blk_no = std::to_string(current_values.blk_no - 1);
|
||||
string emission_coinbase = xmr_amount_to_str(current_values.coinbase, "{:0.3f}");
|
||||
string emission_fee = xmr_amount_to_str(current_values.fee, "{:0.3f}", false);
|
||||
string emission_fee = xmr_amount_to_str(current_values.fee, "{:0.4f}", false);
|
||||
|
||||
j_data = json {
|
||||
{"blk_no" , current_values.blk_no - 1},
|
||||
|
|
Loading…
Reference in a new issue