Bitcoin Forum
April 01, 2026, 11:23:33 PM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: The term orphan block  (Read 239 times)
Rgram (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 256



View Profile
August 18, 2025, 08:47:33 AM
Merited by GeorgeJohn (6), Pressurizedem (3), vapourminer (2), ABCbits (2), DdmrDdmr (1), Charles-Tim (1), stwenhao (1)
 #1

Going through one of the term papers on Bitcoin by ens.press, I came across a statement that somehow comes with conflicting thought as, prior knowledge puts me at a spot where everything on the network is done in parts or series and doesn’t occur together. The orphan block seems to have a simultaneous occurrence with it being discarded after giving priority to the block with much work.

Quote
It can happen that two blocks are simultaneously validated in different parts of the network. Then a competition follows between the two candidates and the first one to have a mined block on top of it wins. The other one is discarded and is called an orphan block. The blockchain with the larger amount of work (which is in general the longer one) adopted by the nodes.

When exactly does this orphan block occurs?
Is it at the point of mining because, its most unlikely that a block containing transactions could be discarded.

ABCbits
Legendary
*
Offline Offline

Activity: 3556
Merit: 9880



View Profile
August 18, 2025, 09:01:46 AM
Merited by pooya87 (5), d5000 (3), vapourminer (1), Charles-Tim (1), Rgram (1)
 #2

Going through one of the term papers on Bitcoin by ens.press

I would recommend you to read https://learnmeabitcoin.com/technical/blockchain/chain-reorganization/ instead, which should be easier than reading (more technical/scientific) paper.

Quote
It can happen that two blocks are simultaneously validated in different parts of the network. Then a competition follows between the two candidates and the first one to have a mined block on top of it wins. The other one is discarded and is called an orphan block. The blockchain with the larger amount of work (which is in general the longer one) adopted by the nodes.

It's not stated by the quote, but those two blocks actually have same block height.

When exactly does this orphan block occurs?

As stated on the quote, it's when another block have a mined block on top of it. It means another block with same block height no longer used by nodes and miners since it's no longer part of longest chain.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
Charles-Tim
Legendary
*
Offline Offline

Activity: 2240
Merit: 6286


Leading Crypto Sports Betting & Casino Platform


View Profile
August 18, 2025, 09:09:35 AM
 #3

When exactly does this orphan block occurs?
Orphan block can occur at any block height.

When two miners mine the same block, the two blocks will be valid but later there must be chain reorganisation in which the block with the longest chain will be valid while the other one will become invalid so that only the block with the longest chain will the new blocks will build upon.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
Rgram (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 256



View Profile
August 18, 2025, 09:17:11 AM
 #4

Going through one of the term papers on Bitcoin by ens.press

I would recommend you to read https://learnmeabitcoin.com/technical/blockchain/chain-reorganization/ instead, which should be easier than reading (more technical/scientific) paper.

It’s actually easier and explains terms in detailed forms. It’s what I should be reading really.

It states here that, this occurrences is rare but very possible as these blocks could be mined at the same time with both carrying similar or same transactions of which, the parent block would be determined by the mining of the next block which would attach to either of the chains, making one of them the longest node and trigger a reorganization where, a staled block would be discarded and transactions within it as well which is indeed similar to the adopted transactions on the longest node. In this way, there wouldn’t be room for double spending as well.

I appreciate you for this material, would get along with it.

stwenhao
Hero Member
*****
Offline Offline

Activity: 650
Merit: 1667


View Profile
August 18, 2025, 09:49:16 AM
Merited by pooya87 (5), ABCbits (3), vapourminer (2), d5000 (2)
 #5

Quote
The term orphan block
It is called "stale", instead of "orphan" in other places. Because "orphan" has no parents, and the only block meeting this definition, is the Genesis Block, where its previous block hash is set to zero.

Quote
When exactly does this orphan block occurs?
I think you should try mining something with signet-like difficulty on CPU, to see that in practice. In general, when hashes are grinded, then from time to time, you can get a close match. And then, you have two pieces of Proof of Work, which are equally valid. The first-seen block header is the one, which miners will work on, but both are valid, until someone will share a new block, which would be created on top of it.

See: https://en.bitcoin.it/wiki/Proof_of_work
Code:
"Hello, world!4250" => 0000c3af42fc31103f1fdc0151fa747ff87349a4714df7cc52ea464e12dcd4e9
Here, some miner successfully grinded "Hello, world!" data, with "nonce", equal to "4250". At the same time, a different miner could find a different text, with a different nonce, but also with 16 leading zero bits.
Code:
"Foo, bar!9764" => 00007a63c3af511785b8f127d4f4e4df3c0dc2e0688cacb5cbcbb1289c47dd6f
And then, you have two valid blocks: one contains "Hello, world!" with nonce "4250", and another one contains "Foo, bar!" with nonce "9764". Which one is valid? Both of them are, and then, the next miner produces the next valid block, and then, everyone switches to the stronger chain, with more Proof of Work.

Some Bash scripts for testing things:
Code:
nonce=0
while [ "$nonce" -lt "20000" ]
do
  echo -n "Hello, world!""$nonce" | sha256sum >> hello.txt
  ((nonce=nonce+1))
done

nonce=0
while [ "$nonce" -lt "20000" ]
do
  echo -n "Foo, bar!""$nonce" | sha256sum >> foobar.txt
  ((nonce=nonce+1))
done

Proof of Work puzzle in mainnet, testnet4 and signet.
satscraper
Legendary
*
Offline Offline

Activity: 1414
Merit: 2626



View Profile
August 19, 2025, 09:34:22 AM
Merited by vjudeu (1)
 #6

When exactly does this orphan block occurs?
Orphan block can occur at any block height.

When two miners mine the same block, the two blocks will be valid but later there must be chain reorganisation in which the block with the longest chain will be valid while the other one will become invalid so that only the block with the longest chain will the new blocks will build upon.


Looks like this is not technically correct.

What are you describing is the "stale" block rather than "orphan" one. To clarify, an orphan block refers to the block that has no valid parent according to the node’s perspective, i.e. it's disconnected from the main chain.

Additionally, according to blockchain.com statistics, no orphan blocks have been found since July 2018:



▄▄███████████████████▄▄
▄███████████████████████▄
████████████████████████
█████████████████████████
████████████████████████
████████████▀██████▀████
████████████████████████
█████████▄▄▄▄███████████
██████████▄▄▄████████████
████████████████████████
████████████████▀▀███████
▀███████████████████████▀
▀▀███████████████████▀▀
 
 EARNBET 
██
██
██
██
██
██
██
██
██
██
██
██
██
███████▄▄███████████
████▄██████████████████
██▀▀███████████████▀▀███
▄████████████████████████
▄▄████████▀▀▀▀▀████████▄▄██
███████████████████████████
█████████▌██▀████████████
███████████████████████████
▀▀███████▄▄▄▄▄█████████▀▀██
▀█████████████████████▀██
██▄▄███████████████▄▄███
████▀██████████████████
███████▀▀███████████
██
██
██
██
██
██
██
██
██
██
██
██
██


▄▄▄
▄▄▄███████▐███▌███████▄▄▄
█████████████████████████
▀████▄▄▄███████▄▄▄████▀
█████████████████████
▐███████████████████▌
███████████████████
███████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

 King of The Castle 
 $200,000 in prizes
██
██
██
██
██
██
██
██
██
██
██
██
██

 62.5% 

 
RAKEBACK
BONUS
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4690
Merit: 10514



View Profile WWW
August 19, 2025, 07:54:50 PM
Merited by satscraper (1), Amphenomenon (1)
 #7

What are you describing is the "stale" block rather than "orphan" one.
Indeed they are.

Quote
Additionally, according to blockchain.com statistics, no orphan blocks have been found since July 2018:
That site is just broken. It was always an indicator of stale blocks and there continue to be stale blocks today.
Amphenomenon
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 879


Hope Jeremiah 17vs7


View Profile WWW
August 19, 2025, 08:22:19 PM
Last edit: August 19, 2025, 08:36:02 PM by Amphenomenon
 #8

There is a different between the orphan and stale block, although sometimes others use them interchangeably but there is still a difference.

Orphan blocks are good blocks placed on hold temporarily because their parent block hasn't been mined/validated and they can be replaced by another longer block  later on.

I remember asking this few years back: https://bitcointalk.org/index.php?topic=5472812.msg63103061#msg63103061

Quote
Additionally, according to blockchain.com statistics, no orphan blocks have been found since July 2018:
That site is just broken. It was always an indicator of stale blocks and there continue to be stale blocks today.
Looking at the last reply in an old thread here: https://bitcointalk.org/index.php?topic=5200116.msg53032362#msg53032362, I think this is the  reason they may not be occurring again

 
█▄
R


▀▀██████▄▄
████████████████
▀█████▀▀▀█████
████████▌███▐████
▄█████▄▄▄█████
████████████████
▄▄██████▀▀
LLBIT▀█ 
  TH#1 SOLANA CASINO  
████████████▄
▀▀██████▀▀███
██▄▄▀▀▄▄████
████████████
██████████
███▀████████
▄▄█████████
████████████
████████████
████████████
████████████
█████████████
████████████▀
████████████▄
▀▀▀▀▀▀▀██████
████████████
███████████
██▄█████████
████▄███████
████████████
█░▀▀████████
▀▀██████████
█████▄█████
████▀▄▀████
▄▄▄▄▄▄▄██████
████████████▀
........5,000+........
GAMES
 
......INSTANT......
WITHDRAWALS
..........HUGE..........
REWARDS
 
............VIP............
PROGRAM
 .
   PLAY NOW    
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4690
Merit: 10514



View Profile WWW
August 19, 2025, 10:23:04 PM
Merited by EFS (14), vapourminer (9), pooya87 (5), d5000 (4), nc50lc (2), DdmrDdmr (1), Amphenomenon (1), stwenhao (1), Rgram (1)
 #9

Amphenomenon, I think you've managed to confuse the thread.

In Bitcoin sometimes a block is created that doesn't make it into the longest chain.  This is unavoidable and has always occurred and cannot be avoided unless mining becomes completely centralized.  At the very least it happens when two miners find a block at close enough to the same time that they couldn't have heard each other's announcement.

Early in Bitcoin users called these things "orphan blocks" because when they were the miner of the blocks the coinbase payment to them would show as "orphan" in the wallet.  But it wasn't the block that was orphan, it was the transaction-- the transactions parent block no longer existed in the wallet's view of the chain.  Some people complained about the use of the term "orphan block" because that term was already in use in side the software for blocks whose parent wasn't yet fetched, because when bitcoin saw a new block it fetched backwards along the chain until it got to the genesis block.  Instead, they suggested people should use the term "stale block".  But the 'missing parent' usage of the term "orphan block" isn't something anything but developers were aware of because the parents always (eventually) got fetched and so users were never aware of these temporary "orphans".   Stale blocks however are common and are of some interest to users (particularly miners).   The term orphan block continued to be used to refer to stale blocks by users.  And whenever you hear someone say "orphan block" they are just referring to stale blocks.

This is especially true because the Bitcoin software was changed long ago so that 'orphan blocks' (ones where the parent isn't known) are just completely impossible:  Nodes now only fetch blocks when they're part of a header chain, and so the parents are *always* known.

Sites like BC.i were always plotting stale blocks, as "orphan blocks" would never have made sense to plot (as they were a purely local, transitory thing that mostly happened during initial download when a new block was found while you were still catching up).  Finding stales is hard because they have never propagated well, since the deployment of compact blocks in 2016 they propagated even worse.   Bc.i used to connect to thousands of nodes which would let them see many stale (which they called orphan) blocks but not all of them... but in more recent years bc.i seems to be largely abandoned and this statistic is not maintained anymore, unsurprising since it was always difficult to collect.

Probably at this point people should stop correcting on the difference between orphan and stale.  Now that orphan blocks (the not stale blocks) aren't even a thing anymore and haven't been for a long time,  the correction is probably adding much more confusion than it solves.

Amphenomenon
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 879


Hope Jeremiah 17vs7


View Profile WWW
August 20, 2025, 12:28:48 PM
 #10

Probably at this point people should stop correcting on the difference between orphan and stale.  Now that orphan blocks (the not stale blocks) aren't even a thing anymore and haven't been for a long time,  the correction is probably adding much more confusion than it solves.
Thanks for the clarification, I understand better now. In the current time, orphan and stale blocks are the same.

 
█▄
R


▀▀██████▄▄
████████████████
▀█████▀▀▀█████
████████▌███▐████
▄█████▄▄▄█████
████████████████
▄▄██████▀▀
LLBIT▀█ 
  TH#1 SOLANA CASINO  
████████████▄
▀▀██████▀▀███
██▄▄▀▀▄▄████
████████████
██████████
███▀████████
▄▄█████████
████████████
████████████
████████████
████████████
█████████████
████████████▀
████████████▄
▀▀▀▀▀▀▀██████
████████████
███████████
██▄█████████
████▄███████
████████████
█░▀▀████████
▀▀██████████
█████▄█████
████▀▄▀████
▄▄▄▄▄▄▄██████
████████████▀
........5,000+........
GAMES
 
......INSTANT......
WITHDRAWALS
..........HUGE..........
REWARDS
 
............VIP............
PROGRAM
 .
   PLAY NOW    
Rgram (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 256



View Profile
August 20, 2025, 02:22:47 PM
 #11

Early in Bitcoin users called these things "orphan blocks" because when they were the miner of the blocks the coinbase payment to them would show as "orphan" in the wallet.  But it wasn't the block that was orphan, it was the transaction-- the transactions parent block no longer existed in the wallet's view of the chain.  Some people complained about the use of the term "orphan block" because that term was already in use in side the software for blocks whose parent wasn't yet fetched, because when bitcoin saw a new block it fetched backwards along the chain until it got to the genesis block.  Instead, they suggested people should use the term "stale block".  But the 'missing parent' usage of the term "orphan block" isn't something anything but developers were aware of because the parents always (eventually) got fetched and so users were never aware of these temporary "orphans".   Stale blocks however are common and are of some interest to users (particularly miners).   The term orphan block continued to be used to refer to stale blocks by users.  And whenever you hear someone say "orphan block" they are just referring to stale blocks.

This is especially true because the Bitcoin software was changed long ago so that 'orphan blocks' (ones where the parent isn't known) are just completely impossible:  Nodes now only fetch blocks when they're part of a header chain, and so the parents are *always* known.

This makes a lot of sense now as it explains why the term seems the same in its definition because and can be used interchangeably because, they are indeed the same as suspected when going through the link provided by ABCbits and it’s indeed confirmed in the link provided by Satscraper. The simplified visual diagram explains it quite well.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!