Chain Reorganization (Reorg) is a process in Blockchain technology where a node replaces part of its blockchain with a different chain. This new chain is longer or has more cumulative work. Reorgs ensure that all nodes agree on a single, consistent ledger. This maintains the integrity and security of the blockchain.
A chain reorganization happens when a node finds a new chain longer than the one it follows. According to the blockchain protocol's consensus rules, the longest chain is the valid one. It represents the chain with the most computational work. The node will deactivate its current chain and adopt the new, longer chain. This process keeps the ledger unified and trustless across all nodes.
Chain reorgs usually occur in high-transaction environments like Bitcoin and Ethereum. Multiple blocks can be mined almost simultaneously. When two or more blocks are added at the same height, a temporary fork is created. Nodes eventually recognize which fork has more blocks or cumulative work. They switch to that chain. This reorganization ensures that the network converges on a single version of the blockchain.
While chain reorgs maintain blockchain consistency, they have drawbacks:
To reduce the negative effects of chain reorganizations, several strategies can be used: