Orphan Block
An orphan block is a block that is valid but is not accepted into the main blockchain because another block at the same height has already been accepted. Orphan blocks occur when two miners find a block at roughly the same time, but only one can be added to the blockchain.
Orphan Block Explained in Simple Terms
An orphan block is a block that gets mined but is not added to the blockchain because another block at the same position (block height) has already been confirmed by the network. It’s like two people racing to finish a task and submitting their results at the same time — only one result will be accepted, and the other one will be left out.
This situation can occur when two miners find a solution for the same block number (height) at almost the same time. The network then accepts one block and discards the other as an orphan.
While orphan blocks are valid and meet the network’s requirements, they are not part of the longest valid chain, which is the chain that the Bitcoin network follows. Orphan blocks do not receive rewards because they are not included in the main blockchain.
How Orphan Block Works
Orphan blocks arise due to the decentralized nature of Bitcoin mining. Miners compete to solve the cryptographic puzzle for the next block. In a decentralized network, it’s possible for two miners to solve the puzzle at almost the same time and broadcast their blocks to the network.
The network nodes receive both blocks but can only accept one based on which block is received first. The other block, which is not part of the longest chain, becomes an orphan block.
The orphan block is then discarded, and any transactions it contained are returned to the mempool, awaiting inclusion in a future block. The miner who created the orphan block does not receive the block reward since the block was not accepted into the main chain.
Orphan blocks are a normal part of the mining process, and while they can be frustrating for miners, they do not represent a security risk to the Bitcoin network.
Example of Orphan Block in Practice
Let’s imagine two miners, Miner A and Miner B, are both working on solving the next Bitcoin block. Both miners find a solution and broadcast their blocks to the network. The network nodes receive Miner A’s block first and add it to the blockchain.
At the same time, Miner B’s block is broadcast to the network. However, because Miner A’s block was already accepted, Miner B’s block is discarded and becomes an orphan block.
Miner B’s block is valid, but it doesn’t form part of the longest chain, so it is not included in the blockchain. Any transactions contained in Miner B’s orphan block are returned to the mempool for inclusion in a future block.