You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Smart contract events like submitting a new proposal or voting can be removed due to chain reorganization.
However, in the periodical syncing task with blockchain, the DApp does not consider and handle the case when a previous emitted event is then removed.
This bug affects various functionalities including submitting new proposal, voting, processing a proposal and so on.
Reproduce Steps
One reproduce example is given below.
submit a new proposal by sending a transaction
mine a block and execute the transaction
at this time, the DApp has noticed the new proposal event and add it to database
chain reorganization happens, where the previous event is removed
the proposal record is still in Database and is shown to users.
Then if the user tries to vote, it will get the error, which means the proposal does not exist and the vote transaction will always fail.
Expected Behaviour
The events removed by chain reorganization should also be removed from database of DApp, making the DApp consistent with data stored in smart contracts.
The text was updated successfully, but these errors were encountered:
Description
Smart contract events like submitting a new proposal or voting can be removed due to chain reorganization.
However, in the periodical syncing task with blockchain, the DApp does not consider and handle the case when a previous emitted event is then removed.
This bug affects various functionalities including submitting new proposal, voting, processing a proposal and so on.
Reproduce Steps
One reproduce example is given below.
Expected Behaviour
The events removed by chain reorganization should also be removed from database of DApp, making the DApp consistent with data stored in smart contracts.
The text was updated successfully, but these errors were encountered: