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

Votes count doesn't revert when the vote transaction is removed #28

Open
darcher-framework opened this issue Dec 31, 2020 · 0 comments
Open

Comments

@darcher-framework
Copy link

darcher-framework commented Dec 31, 2020

Description

Transactions on blockchain can be removed due to chain reorganization.
When the vote transaction is executed in a block, the DApp update the vote count in the UI.
However, if the chain reorganization happens and the transaction got removed from history, but the vote count is not reverted.

Reproduce Steps

One reproduce example is given below.

  1. submit a vote by sending a transaction
  2. mine a block and execute the transaction
  3. at this time, the DApp has updated the vote count
  4. chain reorganization happens, where the previous transaction is removed from history
  5. the vote count is not reverted as transaction does.

Expected Behaviour

The transaction removed by chain reorganization should reflected to the UI, and the vote count should also be reverted.

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

No branches or pull requests

1 participant