mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
order of tx in the index2 fixed
This commit is contained in:
parent
2de918eede
commit
abb317dd40
1 changed files with 8 additions and 4 deletions
10
src/page.h
10
src/page.h
|
@ -502,8 +502,11 @@ namespace xmreg {
|
||||||
|
|
||||||
uint64_t tx_i {0};
|
uint64_t tx_i {0};
|
||||||
|
|
||||||
for (const cryptonote::transaction& tx : blk_txs)
|
for(list<cryptonote::transaction>::reverse_iterator rit = blk_txs.rbegin();
|
||||||
|
rit != blk_txs.rend(); ++rit)
|
||||||
{
|
{
|
||||||
|
const cryptonote::transaction& tx = *rit;
|
||||||
|
|
||||||
tx_details txd = get_tx_details(tx);
|
tx_details txd = get_tx_details(tx);
|
||||||
|
|
||||||
mstch::map txd_map = txd.get_mstch_map();
|
mstch::map txd_map = txd.get_mstch_map();
|
||||||
|
@ -515,8 +518,9 @@ namespace xmreg {
|
||||||
txd_map.insert({"age" , age.first});
|
txd_map.insert({"age" , age.first});
|
||||||
|
|
||||||
// do not show block info for other than
|
// do not show block info for other than
|
||||||
// first tx in the block
|
// last (i.e., first after reverse below)
|
||||||
if (tx_i > 0)
|
// tx in the block
|
||||||
|
if (tx_i < blk_txs.size() - 1)
|
||||||
{
|
{
|
||||||
txd_map["height"] = string("");
|
txd_map["height"] = string("");
|
||||||
txd_map["age"] = string("");
|
txd_map["age"] = string("");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue