Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [chain-reorganization]

Questions about the client-local phenomenon when an Ethereum client discovers a new chain longer in terms of difficulty than its current chain.

0
votes
1answer
36 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; ...
1
vote
0answers
37 views

Distribution of chain-reorganization events?

I'm curious about, for instance, the frequency of chain reorganizations, and the distribution of their depths. Is this information available anywhere? Mostly this is because I'm interested in rules ...
1
vote
1answer
76 views

Syncing events on Database - Dealing with blockchain reorganization

My Dapp relies on live events synchronization on a centralized database. There is always a server side script polling the blockchain for new events, parsing then and do the corresponding operations on ...
5
votes
1answer
160 views

In what cases if any, does a transaction get lost from the network forever?

Is it possible for a transaction that was included in the pending pool across multiple nodes, to become lost from the network forever (i.e. get dropped by all nodes)? If yes, in what cases is that ...
2
votes
1answer
411 views

Log index change during chain reorganization

While working with log filters i've noticed interesting behavior of logs during chain reorganizations. Sometimes same event (log) can have different logIndex in transaction after chain reorganizations....
9
votes
2answers
1k views

Persistent “deep transaction reorg” whilst syncing full geth node

Whilst syncing a new full node using the geth comand "geth --syncmode full", every other line after a few hundred blocks I see the following: WARN [12-02|02:30:46] Skipping deep transaction reorg ...
6
votes
2answers
312 views

Geth Websocket Behavior during reorganization

I have a question about the behaviour of Geth during re-org. Particularly, I am connecting to Geth web-socket to receive new blocks when they are discovered. Usually every 10 to 15 seconds I get a ...
1
vote
0answers
200 views

Local ethereum node contain two different blocks but with same height

I am using geth node and found 2 different block with same number eth.getBlock("0x162ae4b189f77ed65d0be270aa8dea08d4e7dcd70432a7d1fd4e6b0fb1b301d6") { difficulty: 1001546728, extraData: "...
1
vote
0answers
101 views

How to test forked block on local machine?

Read this article How can I reliably induce a blockchain fork for testing purposes?. Example from that thread is outdated, and need to be refreshed. First my step is create initial chaindata from ...
1
vote
0answers
67 views

How to simulate orphaned/forked block locally? [duplicate]

I want to simulate orphaned block locally, it's possible to do this?
6
votes
2answers
1k views

What happens to transactions in orphaned/forked blocks?

From my investigation and reading a lot about this, it seems like the transaction is just removed and the ether returns back to some address. With Bitcoin, orphaned blocks are initially accepted by ...
0
votes
1answer
880 views

Chain Reorganization (TX HASH Change)

I would like to know is it possible that hash of transaction will change during chain reorganization? I noticed that difference is only between block number and block hash. Also, polling geth with ...
3
votes
1answer
107 views

What is the accepted methodology for verifying the integrity of pulled chain data?

What is the accepted methodology of checking the integrity of a chain? If I poll my Geth/Parity node for block data using web3.js how can I confirm that the data returned is not going to be subject ...
8
votes
1answer
928 views

Can a transaction get lost?

Given that I am connected to the network with at least one peer, can I be sure that a transaction I sent will be executed (either with fail or success)? Is there a possibility that it will never make ...
11
votes
1answer
705 views

parity Ropsten testnet forked at block 296151?

I am seeing what looks like a fork in the Ropsten testnet at block 296151 (Jan 6, 11:14 PM UTC). Is this expected? My local Parity node (Parity/v1.4.7-beta-f2058bd-20161227/x86_64-macos/rustc1.13.0) ...
27
votes
4answers
3k 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. ...
15
votes
1answer
1k 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?