Skip to content

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

@darcher-framework

Description

@darcher-framework

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions