|
|
|
@ -1223,7 +1223,16 @@ namespace xmreg {
|
|
|
|
|
|
|
|
|
|
tx_details txd = get_tx_details(tx);
|
|
|
|
|
|
|
|
|
|
boost::get<mstch::array>((res.first)->second).push_back(txd.get_mstch_map());
|
|
|
|
|
mstch::map txd_map = txd.get_mstch_map();
|
|
|
|
|
|
|
|
|
|
// get timestamp of the tx's block
|
|
|
|
|
uint64_t blk_height = core_storage->get_db().get_tx_block_height(txd.hash);
|
|
|
|
|
uint64_t blk_timestamp = core_storage->get_db().get_block_timestamp(blk_height);
|
|
|
|
|
|
|
|
|
|
// add the timestamp to tx mstch map
|
|
|
|
|
txd_map.insert({"timestamp", xmreg::timestamp_to_str(blk_timestamp)});
|
|
|
|
|
|
|
|
|
|
boost::get<mstch::array>((res.first)->second).push_back(txd_map);
|
|
|
|
|
|
|
|
|
|
// dont show more than 500 results
|
|
|
|
|
if (tx_i > 500)
|
|
|
|
|