What is chain reorganization in blockchain technology?

Published at: May 29, 2022

What are the advantages and disadvantages of PoS blockchains?

Proof-of-stake (PoS) blockchains have numerous advantages over proof-of-work (PoW) blockchains as they are more environmentally friendly and have no centralization issues. However, there are also some disadvantages, such as double spending during blockchain reorganization.

To begin with, the PoS consensus mechanism is far more environmentally friendly than PoW. In essence, miners don't need to waste processing power on pointless calculations to safeguard the network. 

Second, there are no issues with centralization. Indeed, unlike PoW, where mining has mostly been dominated by specialist hardware equipment, and there is a significant risk that a single huge miner would take over and effectively monopolize the market, PoS is CPU friendly in the long run.

However, there are certain drawbacks to using PoS. For instance, the "nothing at stake" issue. By voting for multiple blockchain histories, miners have nothing to lose. This is because, unlike PoW, the cost of mining on several chains is low, and miners can try to double-spend at no cost in the case of blockchain reorganization.

What is the impact of chain reorganization?

Chain reorganization increases node costs, degrades user experience, and increases the vulnerability of decentralized finance (DeFi) transactions and 51% attacks.

Due to the need to transition over to the new fork, state updates sometimes involve memory and disc costs when a reorg occurs. Consequently, because reorgs are possible, users will have to wait longer before they can confidently treat a transaction that involves them as confirmed. As a result, businesses like exchanges, for example, may have to wait longer before accepting a deposit.

Chain reorganization raises the risk of DeFi transactions failing due to human error, resulting in lower-than-expected trading returns. Reorg also increases the vulnerability of 51% attacks, which means attackers no longer have to defeat all honest miners; instead, they must defeat the percentage of honest miners who aren't reorged. The attacker's job becomes much easier if reorganization occurs frequently.

How are blockchains chained together?

A nonce generates the cryptographic hash when the first block of a chain is formed. Unless it is mined, the data in the block is regarded as signed and irrevocably linked to the nonce and hash.

A header and several transactions are included in each block. Then, a fixed-length hash output is generated from the transactions in a block and added to the block header.

Following the generation of the first valid block, each subsequent valid block must include the previous or old block header's hash output. Every valid block is linked to those before it by the hash of the previous block header, which is contained in every block. As a result, a chain of blocks (data chain), called a blockchain, is formed by connecting each block to its predecessors.

How does chain reorganization work?

A blockchain reorganization attack refers to a chain split in which nodes receive blocks from a new chain while the old chain continues to exist.

On May 25, the Ethereum Beacon chain suffered a seven-block reorg and was exposed to a high-level security risk called chain organization. Validators on the Eth2 (now consensus layer upgrade) Beacon Chain became out of sync after a client update elevated specific clients. However, during the process, validators on the blockchain network were confused and didn't update their clients.

Seven-block reorganization means that seven blocks of transactions were added to the eventually discarded fork before the network figured out it wasn't the canonical chain. Therefore, blockchain reorganization happens if some node operators are faster than others. During this scenario, faster nodes will be unable to agree on which block should be processed first and they'll continue to add blocks to their blockchain, leaving the shorter chain when the next block is created.

For instance, miners X and Y may both locate a valid block at the same time, but due to the way the blocks spread in a peer-to-peer network, a portion of the network will see X's block first, followed by Y's block. 

If the two blocks are of equal difficulty, there will be a tie, and clients will be given the option of picking at random or selecting the previously seen block. When a third miner, Z, creates a block on top of either X's or Y's block, the tie is usually broken, and the other block is forgotten, leading to blockchain reorganization.

In Ethereum's Beacon chain reorganization case, up-to-date nodes were around 12 seconds faster than validators that hadn't updated their clients at block 3,887,074. Ethereum chain reorganization occurs when updated clients submit the next block before the rest of the validators. This confused validators about who should submit the initial block.

Preston Van Loon, a core Ethereum developer, stated that the reorg of the Ethereum blockchain is due to the deployment of the Proposer Boost fork decision, which has not yet been fully rolled out to the network. Furthermore, this reorganization is a non-trivial segmentation of updated versus outdated client software, not a sign of a bad fork choice.

What is chain reorganization?

A reorganization, abbreviated as reorg, occurs when a block is deleted from the blockchain to make room for a longer chain.

Despite its potential, blockchain is beset by obstacles. For example, block conflict is now the most common type of blockchain flaw, which indicates that if two blocks are published nearly simultaneously, a fork in the blockchain can occur. 

The current conflict resolution method is based on the Longest Chain Rule (LCR), i.e., if multiple blocks are present, treat the longest chain as valid. This means that each node follows the protocol requirement of only attempting to extend the most extended branch of which they are aware. Because transactions on the wrong side of the fork would be restructured into new blocks, this rule causes a few transactions on the wrong side of the fork to be delayed, leading to blockchain reorganization.

Chain reorganization can happen with busier blockchains such as Bitcoin and Ethereum, where nodes may generate a new block simultaneously and in the same place. The two nodes update their copies of the ledger; if this happens, the node that produced the shorter follow-up chain reorganizes the chain. Chain rearrangement, in essence, ensures that all node operators have the same copy of the distributed ledger.

Tags
Related Posts
Privacy protocol’s dogged focus on untraceable coins and anonymous communication
In a battle of animal-themed cryptocurrencies, a bullock-branded, anonymity-focused protocol is making the case that it is faster, safer and cleaner than the shiba inu-faced joke coin that became a top 10 cryptocurrency this year, largely on the strength of Elon Musk’s memes. Animals aside, the Oxen privacy coin does have some reason to compare itself with market darling Dogecoin. Speed, for one. While DOGE’s block time is one minute compared to OXEN’s two, Oxen can use what it calls Blink technology, which is the default setting for OXEN to make the transactions nearly instant. On top of that, Oxen …
Technology / June 28, 2021
Ethereum Merge a 'few months after' June: Dev clears up what’s going on
The long-awaited Ethereum Merge is set for yet another delay, with developers working on the upgrade estimating a completion time a “few months after” June. Owing to the success of testing, there was a general expectation the Merge would go through mid year, however the latest setback is unsurprising given that Proof of Stake has been delayed constantly ever since it was first proposed. That said, the signs are promising that the Ethereum mainnet will actually merge with the beacon chain to become a Proof-of-Stake (PoS) network this year. For real. Ethereum developer Tim Beiko provided the updated timeline via …
Blockchain / April 14, 2022
OpenSea says marketplace won't support forked NFTs post Merge
As the date for the Ethereum Merge approaches, nonfungible token (NFT) marketplace OpenSea has announced that it will focus on supporting only the NFTs that are on the upgraded proof-of-stake (PoS) blockchain. In an announcement on Twitter, the NFT marketplace said that while their team is not speculating on any potential forks, it clarified that if there are forked NFTs, they will not reflect on OpenSea as the platform will only support the upgraded chain. The NFT marketplace also highlighted that its team is preparing the NFT trading platform for any issues that may arise with the upcoming Ethereum Merge …
Blockchain / Sept. 1, 2022
Only 10 hours to the Ethereum Merge: Here's what you need to know
Ethereum's long-awaited transition from proof-of-work (PoW) to proof-of-stake (PoS) is upon us as the Merge looms in less than 10 hours. There's plenty to consider for the wider cryptocurrency space — and here's what you need to know. What is the Merge? The Ethereum blockchain will transition away from its energy-intensive consensus mechanism PoW as its execution layer merges with the new PoS consensus layer known as the Beacon Chain. The Beacon Chain went live in December 2020, allowing ecosystem participants to deposit or ‘stake’ ETH to become the new validators of the network, in doing so replacing PoW miners …
Blockchain / Sept. 14, 2022
Casper Association launches $25M grant to support developers on its blockchain
Scalable blockchain network Casper announced the launch of its new Casper Accelerate Grant Program on Nov. 23, created to support developers and innovators who are building apps to support infrastructure, end-user applications, and research innovation on its blockchain. JUST IN from @nextblockexpo: We're glad to announce the launch of a $25M Casper Accelerate Grant Program. This fund will support learning, development, and innovations in Infrastructure, #dApps, #DeFi, #Gaming & NFTs. Learn more https://t.co/jClYyYxRVW pic.twitter.com/V8KszHEjM3 — Casper (@Casper_Network) November 23, 2022 The Casper Network is a Proof-of-Stake (PoS) enterprise-focused blockchain designed to help businesses to build private or permissioned apps, aimed …
Decentralization / Nov. 23, 2022