What is a blockchain reorganization?
In a distributed network like Monero, nodes may occasionally see conflicting versions of the 'truth' regarding the latest blocks.
Quick Answer
A blockchain reorganization occurs when the network switches from one chain to another, usually because a different chain was found to have more cumulative proof-of-work. Nodes follow the longest, most difficult chain. If a new block or series of blocks appears that is valid and has more work than the current local chain, nodes will reorganize their local records to match the new, longer chain.
The Longest Chain Rule
Monero nodes operate on a consensus mechanism that prioritizes the chain with the most cumulative difficulty. When two nodes report different chain tips, others observe the network and ultimately converge on the branch that represents the most cumulative work. This reorganization is a natural, healthy process that keeps the network synchronized.
Maintaining Integrity
Reorganizations help the network recover from temporary forks or latency issues where miners might have found blocks at nearly the same time. While it may seem like a disruption, the protocol is designed to handle this gracefully. Once a reorganization occurs, transactions that were unique to the discarded chain are usually returned to the mempool to be included in the new, valid chain.
Sources
Related reading
Key takeaways
- Reorganizations happen when nodes switch to a chain with more work.
- The network always follows the chain with the most cumulative difficulty.
- It is a normal process for maintaining consensus in a decentralized system.
