Displaying tx with no recipients/ 0 value
The explorer is displaying tx with 0 value and/or txs with no recipients
Any chance this can be changed so that the explorer only displays transactions that have recipients &/or a value greater than 0?
Thanks a lot for your time!
I'm interested into this too. I follow.
Sorry guys, I've been swamped with work that I haven't been too active.
That table is referencing /ext/getlasttxesajax/0 from here: https://github.com/iquidus/explorer/blob/9692ab958a08893ea40d6f225c5ef2626b98169e/views/index.pug#L56 which corresponds to this: https://github.com/iquidus/explorer/blob/9692ab958a08893ea40d6f225c5ef2626b98169e/app.js#L147-L173
So we see in that app.js that /ext/getlasttxsajax/:min has the "min" variable which we've hardcoded in the view to be "0" So /ext/getlasttxsajax/0 ends up passing "0" to the following call here: https://github.com/iquidus/explorer/blob/9692ab958a08893ea40d6f225c5ef2626b98169e/lib/database.js#L374-L384
Here though is where your issue lies. We're searching for records that have a "TOTAL" amount that is greater-than-or-equal to "0".
I would try changing this to something ridiculously small like ".0000001" in your views/index.pug file on line 56. That should give you the output you're looking to which hides the "0" transactions. Granted, right this moment, I can't think of any ill-effects this will have, but there may be some (hides a false-positive being the worst case scenario).
You can test it by just hitting /ext/getlasttxsajax/.0000001 and seeing if you get any outputs that have 0's in it.
Sorry guys, I've been swamped with work that I haven't been too active.
That table is referencing /ext/getlasttxesajax/0 from here: https://github.com/iquidus/explorer/blob/9692ab958a08893ea40d6f225c5ef2626b98169e/views/index.pug#L56
which corresponds to this: https://github.com/iquidus/explorer/blob/9692ab958a08893ea40d6f225c5ef2626b98169e/app.js#L147-L173
So we see in that app.js that /ext/getlasttxsajax/:min has the "min" variable which we've hardcoded in the view to be "0" So /ext/getlasttxsajax/0 ends up passing "0" to the following call here: https://github.com/iquidus/explorer/blob/9692ab958a08893ea40d6f225c5ef2626b98169e/lib/database.js#L374-L384
Here though is where your issue lies. We're searching for records that have a "TOTAL" amount that is greater-than-or-equal to "0". I would try changing this to something ridiculously small like ".0000001" in your
views/index.pugfile on line 56. That should give you the output you're looking to which hides the "0" transactions. Granted, right this moment, I can't think of any ill-effects this will have, but there may be some (hides a false-positive being the worst case scenario).You can test it by just hitting /ext/getlasttxsajax/.0000001 and seeing if you get any outputs that have 0's in it.
I have changed line 56 in views/index.pug to ajax: '/ext/getlasttxsajax/0.00000001', which has worked as you can see below:

explorer.idealcash.io Thanks a lot for helping with this @uaktags
It works for me too, thank you!
We may want this to go down as a user-setting to hide such transactions. As an overall explorer, we'd want that because it's part of the blockchain that we're "exploring". However, as you guys can tell, it provides no realworld benefit.
been struggling with this one for a bit and finally stumbled across this. Thanks @uaktags for spending the time on this.