|
|
@ -2103,7 +2103,7 @@ show_my_outputs(string tx_hash_str,
|
|
|
|
{"blk_height" , tx_blk_height_str},
|
|
|
|
{"blk_height" , tx_blk_height_str},
|
|
|
|
{"tx_size" , fmt::format("{:0.4f}",
|
|
|
|
{"tx_size" , fmt::format("{:0.4f}",
|
|
|
|
static_cast<double>(txd.size) / 1024.0)},
|
|
|
|
static_cast<double>(txd.size) / 1024.0)},
|
|
|
|
{"tx_fee" , xmreg::xmr_amount_to_str(txd.fee, "{:0.12f}", true)},
|
|
|
|
{"tx_fee" , xmreg::xmr_amount_to_str(txd.fee, "{:0.11f}", true)},
|
|
|
|
{"blk_timestamp" , blk_timestamp},
|
|
|
|
{"blk_timestamp" , blk_timestamp},
|
|
|
|
{"delta_time" , age.first},
|
|
|
|
{"delta_time" , age.first},
|
|
|
|
{"outputs_no" , static_cast<uint64_t>(txd.output_pub_keys.size())},
|
|
|
|
{"outputs_no" , static_cast<uint64_t>(txd.output_pub_keys.size())},
|
|
|
@ -2684,7 +2684,7 @@ show_my_outputs(string tx_hash_str,
|
|
|
|
context["show_inputs"] = show_key_images;
|
|
|
|
context["show_inputs"] = show_key_images;
|
|
|
|
context["inputs_no"] = static_cast<uint64_t>(inputs.size());
|
|
|
|
context["inputs_no"] = static_cast<uint64_t>(inputs.size());
|
|
|
|
context["sum_mixin_xmr"] = xmreg::xmr_amount_to_str(
|
|
|
|
context["sum_mixin_xmr"] = xmreg::xmr_amount_to_str(
|
|
|
|
sum_mixin_xmr, "{:0.12f}", false);
|
|
|
|
sum_mixin_xmr, "{:0.11f}", false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uint64_t possible_spending {0};
|
|
|
|
uint64_t possible_spending {0};
|
|
|
@ -2717,7 +2717,7 @@ show_my_outputs(string tx_hash_str,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
context["possible_spending"] = xmreg::xmr_amount_to_str(
|
|
|
|
context["possible_spending"] = xmreg::xmr_amount_to_str(
|
|
|
|
possible_spending, "{:0.12f}", false);
|
|
|
|
possible_spending, "{:0.11f}", false);
|
|
|
|
|
|
|
|
|
|
|
|
} // if (enable_mixin_guess)
|
|
|
|
} // if (enable_mixin_guess)
|
|
|
|
|
|
|
|
|
|
|
@ -6135,9 +6135,9 @@ construct_tx_context(transaction tx, uint16_t with_ring_signatures = 0)
|
|
|
|
{"blk_height" , tx_blk_height_str},
|
|
|
|
{"blk_height" , tx_blk_height_str},
|
|
|
|
{"tx_blk_height" , tx_blk_height},
|
|
|
|
{"tx_blk_height" , tx_blk_height},
|
|
|
|
{"tx_size" , fmt::format("{:0.4f}", tx_size)},
|
|
|
|
{"tx_size" , fmt::format("{:0.4f}", tx_size)},
|
|
|
|
{"tx_fee" , xmreg::xmr_amount_to_str(txd.fee, "{:0.12f}", false)},
|
|
|
|
{"tx_fee" , xmreg::xmr_amount_to_str(txd.fee, "{:0.11f}", false)},
|
|
|
|
{"tx_fee_micro" , xmreg::xmr_amount_to_str(txd.fee*1e6, "{:0.4f}", false)},
|
|
|
|
{"tx_fee_micro" , xmreg::xmr_amount_to_str(txd.fee*1e6, "{:0.4f}", false)},
|
|
|
|
{"payed_for_kB" , fmt::format("{:0.12f}", payed_for_kB)},
|
|
|
|
{"payed_for_kB" , fmt::format("{:0.11f}", payed_for_kB)},
|
|
|
|
{"tx_version" , static_cast<uint64_t>(txd.version)},
|
|
|
|
{"tx_version" , static_cast<uint64_t>(txd.version)},
|
|
|
|
{"blk_timestamp" , blk_timestamp},
|
|
|
|
{"blk_timestamp" , blk_timestamp},
|
|
|
|
{"blk_timestamp_uint" , blk.timestamp},
|
|
|
|
{"blk_timestamp_uint" , blk.timestamp},
|
|
|
|