|
|
|
@ -98,6 +98,8 @@ namespace xmreg {
|
|
|
|
|
// get block's hash
|
|
|
|
|
crypto::hash blk_hash = core_storage->get_block_id_by_height(i);
|
|
|
|
|
|
|
|
|
|
string blk_hash_str = REMOVE_HASH_BRAKETS(fmt::format("{:s}", blk_hash));
|
|
|
|
|
|
|
|
|
|
uint64_t delta_hours {0};
|
|
|
|
|
uint64_t delta_minutes {0};
|
|
|
|
|
uint64_t delta_seconds {0};
|
|
|
|
@ -167,7 +169,7 @@ namespace xmreg {
|
|
|
|
|
{"height" , to_string(i)},
|
|
|
|
|
{"timestamp" , timestamp_str},
|
|
|
|
|
{"age" , age_str},
|
|
|
|
|
{"hash" , fmt::format("{:s}", blk_hash)},
|
|
|
|
|
{"hash" , blk_hash_str},
|
|
|
|
|
{"block_reward", fmt::format("{:0.4f} ({:0.4f})",
|
|
|
|
|
XMR_AMOUNT(coinbase_tx[1]),
|
|
|
|
|
XMR_AMOUNT(sum_fees))},
|
|
|
|
@ -282,7 +284,7 @@ namespace xmreg {
|
|
|
|
|
txs.push_back(mstch::map {
|
|
|
|
|
{"timestamp" , xmreg::timestamp_to_str(_tx_info.receive_time)},
|
|
|
|
|
{"age" , age_str},
|
|
|
|
|
{"hash" , fmt::format("<{:s}>", _tx_info.id_hash)},
|
|
|
|
|
{"hash" , fmt::format("{:s}", _tx_info.id_hash)},
|
|
|
|
|
{"fee" , fmt::format("{:0.4f}", XMR_AMOUNT(_tx_info.fee))},
|
|
|
|
|
{"xmr_inputs" , fmt::format("{:0.2f}", XMR_AMOUNT(sum_inputs))},
|
|
|
|
|
{"xmr_outputs" , fmt::format("{:0.2f}", XMR_AMOUNT(sum_outputs))},
|
|
|
|
|