All Questions
Tagged with chain-reorganization dapp-development
3 questions
0
votes
1
answer
344
views
What is the change in smart contract when the 'chain reorganizations'?
Recently I learned about 'chain reorganization'.
What is the change in smart contract when the 'chain reorganizations'?
for example,
contract Contract{
event LOG_Increase();
uint sum = 0;
...
38
votes
6
answers
8k
views
How can a DApp detect a fork or chain reorganization using web3.js or additional libraries?
Take an example of a voting DApp. A user clicks on a vote button, then behind the scenes a transaction gets mined on the blockchain, and finally the DApp tells the user their vote has been recorded.
...
16
votes
1
answer
2k
views
How should I handle blockchain forks in my DApp?
In the user interface of my DApp, how can I detect that a blockchain reorganization happened and what should I do to update the UI state once the fork is resolved?