uaktags / explorer

An open source block explorer
BSD 3-Clause "New" or "Revised" License
6 stars 8 forks source link

Latest Transaction vs Latest Blocks (previously named:"Block vs Entries List") #9

Open spy0012 opened 5 years ago

spy0012 commented 5 years ago

Entries list does not match how many blocks there are on the index page see screenshot (limit screen view due to unreleased coin) image

As you can see from the image it shows 218 more entries than actual blocks in the DB and i also have "last_txs": 1000 so that doesn't make sense either.

Really like this explorer and want to keep using it, so just trying to point out some bugs/issues Also i don't suppose you know how to show more than 10 entries on the index page or a setting or maybe make a setting in the json for show no entries 25 or something Also i have a few more do you want separate issues for them all

Update - Nearly 300 entries more than blocks, the gap is getting bigger

uaktags commented 5 years ago

I can confirm this.

5616: ca37376919266f45ea29b33033bf473bce0042810aad683fa9f5e8fb3c399310
5616: 1809aea7008bde887ec621d8602b2068cd6ae1f92b48b941119d5d76a15a0e27
5617: a228ed27f807ba17ad5452a8d0b74e89eb4302e3d62070e647e7f1cfa6f8a752

Is the last thing i see in my sync index reindex, but front page is

Showing 1 to 10 of 5,762 entries

I'll take a look and see what's going on.

please yes, keep all separate issues in their own threads for easy tracking and fixing.

uaktags commented 5 years ago

Okay, this isn't a bug, this is how it's suppose to go. You're looking at latest transactions, so there are in your case 15218 transactions, but 15000 blocks (blocks can have multiple transactions).

uaktags commented 5 years ago

I also have to double check, but i believe this should have been merged or will be: iquidus/explorer/pull/270

spy0012 commented 5 years ago

Thanks i think because i have been used to seeing blocks the same as entries it looked strange when i saw it. appreciate you taking the time, closing

uaktags commented 5 years ago

Reopening as a possible enhancement. Perhaps giving the option to change "Latest Transactions" to "Latest Blocks" where transactions will be grouped by the blocks shown.