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

Transaction failed for vote and send LSK #3783

Closed
sridharmeganathan opened this issue Sep 14, 2021 · 2 comments · Fixed by #3800
Closed

Transaction failed for vote and send LSK #3783

sridharmeganathan opened this issue Sep 14, 2021 · 2 comments · Fixed by #3800
Assignees
Milestone

Comments

@sridharmeganathan
Copy link
Contributor

Expected behavior

As a user i'm allowed to send more than one transaction when there is sufficient balance in my account

Actual behavior

As a user im unable to send more than one transaction. This is applicable for vote and send transactions
image

Steps to reproduce

  1. Sign in to the wallet page --> send LSK to other account
  2. Wait for the transaction confirmation.
  3. After the previous transaction got confirmed, now send the new transaction

Which version(s) does this affect? (Environment, OS, etc...)

2.0.1

@ManuGowda
Copy link
Contributor

ManuGowda commented Sep 16, 2021

Investigation Report

Current implementation:
Lisk Desktop allows users to create transaction and the after the successful creation and inclusion of transaction in the block, the store is updated with nonce.

Flow: Transaction Create (Desktop) -> Broadcast (Desktop) -> Send to core (Service) -> Included in block (Lisk Core) (10sec window) -> New Block Event (Lisk Core) -> Query accounts for latest state (Desktop to Service) -> Update store with latest account state nonce (Desktop)

During the above described flow, when a new block events sends information about inclusion of transaction, the service returns outdated account information due to caching.

Since service returns the outdated account info due to caching, we store the invalid account info. And the account store will never be up to date and a logged in users will never be able to make successful transaction from here onwards.

The only work around of users is to logout and log in, as the account store will be updated (10 second caching expired by service).

ManuGowda added a commit that referenced this issue Sep 20, 2021
Handle transaction nonce fail - Closes #3783
@ManuGowda
Copy link
Contributor

The Lisk Desktop was not updated to fix any issue as the Lisk Service caching at proxy level is been addressed. From Lisk Desktop, we have improved to show better error message and for reporting via email we have added few more details so that it is easier to understand the reports and take action in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants