Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locked amount doesn't update in Extension and Desktop wallet, after unlocking #5965

Open
314159265359879 opened this issue Nov 13, 2024 · 14 comments
Labels
area:stacking area:stacks bug Functionality broken bug-p2 Critical functionality broken for few users, with no clear workarounds

Comments

@314159265359879
Copy link
Contributor

314159265359879 commented Nov 13, 2024

This address has had their STX unlocked after revoking the delegation 9 days ago but it still shows locked, it is expected to show unlocked and be transferable:
On the explorer the funds lock unlocked (as expected)
https://explorer.hiro.so/address/SP24FTYJV6N2XG5SVQPY4DHMC2DECGDAV2BRVPY0Y?chain=mainnet
Image

API shows them unlocked too: https://stacks-node-api.mainnet.stacks.co/extended/v1/address/SP24FTYJV6N2XG5SVQPY4DHMC2DECGDAV2BRVPY0Y/balances

**locked | "0"**
lock_height | 0
burnchain_lock_height | 0
burnchain_unlock_height | 0
estimated_balance | "181369431823"

I would expect to see all the balance unlocked in the wallet too, but the user sees this in their wallet
Extension wallet (6.52.0) and desktop wallet.
Image

The user can't send their funds because they are still registered as locked:
Image

Desktop wallet version 4.15.1
Image

I am trying to get console logs from the user to check for networking issues. If there was a networking issue, though, I would expect the wallet to show that the balance can't be determined, not show outdated info.

@314159265359879 314159265359879 added area:stacking area:stacks bug Functionality broken bug-p2 Critical functionality broken for few users, with no clear workarounds labels Nov 13, 2024
Copy link

linear bot commented Nov 13, 2024

@kyranjamie
Copy link
Collaborator

Can we verify whether this is an API issue or not?

@314159265359879
Copy link
Contributor Author

The user has confirmed that they resolved it by using another computer and browser but I have not been able to determine if this is an API issue and/or connection issue or not.

@314159265359879
Copy link
Contributor Author

No console logs from the same state. when the old data was shown and it wasn't properly updated.

They made this after sending out STX with the other computer/browser. Now the balance is updated normally (0STX is correct).
Image

perhaps the displayed errors are helpful anyway.

Copy link
Collaborator

camerow commented Nov 21, 2024

This seems like a p2/p1 level issue, no? @kyranjamie can you help me decide on how much to prioritize this? Is it worth taking someone off what they are doing or can we push it to a future cycle?

@kyranjamie
Copy link
Collaborator

I am not really sure where to start here. All of this data is inferred from the one API endpoint. If this one user solved the issue, and we've had no other reports, I would hold off before investing time in it.

@314159265359879
Copy link
Contributor Author

Linking the desktop issue here, we saw the same thing there. leather-io/desktop#1274

@314159265359879
Copy link
Contributor Author

An other issue like this today, on the extension. The user has tried refreshing/clearing cache, reinstalling the wallet and restoring it but nothing works.

When I check the address on the explorer the funds are unlocked. The user also expects to see them unlocked in Leather, but they they remain locked.
Image

In their wallet they still look locked. Well beyond the start of cycle 99.
Image

The only thing I can think of is that the wallet is getting data from an outdated node. How do we check or verify that?
Is there anything else that could be causing this?

@314159265359879
Copy link
Contributor Author

One user mentioned working around the issue installing Leather on another browser, where the locked balance status did update as expected.

@markmhendrickson
Copy link
Collaborator

@camerow should @alter-eggo perhaps investigate this cycle?

@camerow
Copy link
Collaborator

camerow commented Dec 12, 2024

Yeah, @alter-eggo can you hop on this?

@alter-eggo
Copy link
Contributor

yeah, once finish rpc send transfer

@markmhendrickson
Copy link
Collaborator

@alter-eggo can you jump on this now?

@alter-eggo
Copy link
Contributor

alter-eggo commented Dec 19, 2024

guys, not sure where is the problem here tbh. stx balance data become stale each minute in the wallet, so seems cache is not a problem. and as I understand user even reinstalled the wallet.

explorer uses the same endpoint as wallet to fetch balances: https://api.hiro.so/extended/v1/address/

@leather-io leather-io deleted a comment from Johnpalhub Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:stacking area:stacks bug Functionality broken bug-p2 Critical functionality broken for few users, with no clear workarounds
Projects
None yet
Development

No branches or pull requests

5 participants