explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Nonces nolonger showing on pending transactions when viewing an address and its history?

Open 314159265359879 opened this issue 2 years ago • 6 comments

Describe the bug Nonces not showing anymore for pending transactions on an address.

This improvement was rolled out some time ago and I enjoyed it a lot when troubleshooting issues for users. https://github.com/hirosystems/explorer/issues/622#event-6661631170

To Reproduce Steps to reproduce the behavior:

  1. Go to any address with pending transactions
  2. nonces not shown here: image

Expected behavior I would expect it to show something like this: image

source: https://github.com/hirosystems/explorer/pull/624#issuecomment-1130420295

Desktop (please complete the following information): n.a.

Smartphone (please complete the following information): n.a.

314159265359879 avatar Jul 07 '22 19:07 314159265359879

Hero Gamer says sometimes it shows other times it does not, and sometimes a refresh resolves it. I tried refresh several times before posting this but had no success. Is it possible some explorer servers are using an older version then others?

314159265359879 avatar Jul 07 '22 22:07 314159265359879

I looked at a random pending tx in the mempool, I can confirm refreshes does change whether it displays the Nonce "n" or not.

  • Example tx under this address: https://explorer.stacks.co/address/SP3KPRE6KAQSSK3189X58SJQRNPF5JSM03WMD5RSB?chain=mainnet

  • First search "n" appears.

  • Exact same pending tx after a few refreshes, the "n" disappears.

Hero-Gamer avatar Jul 07 '22 22:07 Hero-Gamer

Thanks @Hero-Gamer and @314159265359879 we will look into it.

beguene avatar Jul 08 '22 06:07 beguene

At this time, I notice nonce values are displayed for pending transactions. However, nonce is not displayed on anchored transactions. If this is intentional, may I request to keep nonce value even for anchored? Thanks.

dartman10 avatar Oct 01 '22 18:10 dartman10

@dartman10 this is intentional, atleast my reasoning when I requested the feature was that:

  1. For confirmed transactions we already know the nonce is fine.

  2. The last confirmed nomce is already shown on top.

  3. Nonces on confirmed transactions could cause additional confusion when they are send from another address they would show that account's address (incoming transfers). Although I am sure it could be made so nonce is only shown for transactions send by the address being viewed we wanted to keep it simple.

  4. I couldn't think of a use case for it and thought keeping it simple would be best.

What is the use case you are thinking of that makes it helpful to see the nonces on confirmed transactions?

314159265359879 avatar Oct 02 '22 06:10 314159265359879

@314159265359879 mine is a weird use case. and with last nonce already at the top (thanks for pointing that out), we can ignore my request. :)

The use case is with a pending transaction having nonce 260, which was overridden earlier with an already confirmed transaction having same nonce.

Screen Shot 2022-10-02 at 6 16 42 AM

Thank you for taking the time and for explaining! Cheers!

dartman10 avatar Oct 02 '22 10:10 dartman10

This issue has been resolved some time ago. closing this.

314159265359879 avatar Jan 21 '23 21:01 314159265359879