Bitcoin Forum
May 02, 2024, 09:06:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Forking Q1 - orphaned blocks  (Read 451 times)
Jet Cash (OP)
Legendary
*
Offline Offline

Activity: 2702
Merit: 2456


https://JetCash.com


View Profile WWW
February 18, 2016, 08:21:06 AM
 #1

I'm having difficulty in understanding the full complexity of blockchain forking. Most explanations seem to incorporate a variety of problems and descriptions, and this is making it difficult for me to understand. With your tolerance, I would like to ask a number of questions about specific forking issues, and I hope this will allow me to build a clearer picture of the issues. This first question is the relatively minor issue of orphaned blocks.

Sometimes a couple of miners will find a new block at virtually the same time. They both add these blocks to the chain, and this creates a chain with two "heads" but the same tail. As other miners find blocks they add their blocks to one of the heads, and this locks the direction of the chain if it becomes the longest. The other head ( and any blocks following it) are left out in the cold, and are described as orphaned blocks. Is this description correct? This leads to another question - what happens to those blocks? Are they discarded, which means the miner loses the revenue from his PoW, or can the miner re-use them and add them to the new longest chain? What happens to the transactions in them? Do they go back into the pool, and what if some have been included in new blocks? ( is this possible? ).

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714640802
Hero Member
*
Offline Offline

Posts: 1714640802

View Profile Personal Message (Offline)

Ignore
1714640802
Reply with quote  #2

1714640802
Report to moderator
1714640802
Hero Member
*
Offline Offline

Posts: 1714640802

View Profile Personal Message (Offline)

Ignore
1714640802
Reply with quote  #2

1714640802
Report to moderator
AliceWonderMiscreations
Full Member
***
Offline Offline

Activity: 182
Merit: 107


View Profile WWW
February 18, 2016, 08:33:18 AM
 #2

The orphaned blocks are worthless, ignored by the network, as if they never happened.

It might be possible for the miner or a team of miners to keep using them hoping to make that chain once again longer but unless those miners have 51% of the network hash rate, it becomes more and more unlikely they will be able with each additional block added to the chain that won.

I hereby reserve the right to sometimes be wrong
odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
February 18, 2016, 08:49:22 AM
 #3

Your description is correct. Orphaned blocks are forgotten. The miner ends up not being paid for the block because the transaction in the block that pays him (the "coinbase" transaction) is not in a block in the chain. Transactions in the orphaned block are also included in the other blocks, so orphaned blocks have no impact on transactions.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
Jet Cash (OP)
Legendary
*
Offline Offline

Activity: 2702
Merit: 2456


https://JetCash.com


View Profile WWW
February 18, 2016, 08:55:56 AM
 #4

Why can't the miner use the PoW for the orphaned block to create a completely new block to add to the current longest chain? If that PoW hasn't been used in the current chain, then surely it can be retried.

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
February 18, 2016, 09:02:58 AM
 #5

Why can't the miner use the PoW for the orphaned block to create a completely new block to add to the current longest chain? If that PoW hasn't been used in the current chain, then surely it can be retried.

Part of the data that is hashed in order to find a valid block is the reference to the previous block in the chain. If you change that in an orphaned block the hash is different and very likely no longer valid (in terms of difficulty).

Im not really here, its just your imagination.
Jet Cash (OP)
Legendary
*
Offline Offline

Activity: 2702
Merit: 2456


https://JetCash.com


View Profile WWW
February 18, 2016, 09:49:25 AM
 #6

Why can't the miner use the PoW for the orphaned block to create a completely new block to add to the current longest chain? If that PoW hasn't been used in the current chain, then surely it can be retried.

Part of the data that is hashed in order to find a valid block is the reference to the previous block in the chain. If you change that in an orphaned block the hash is different and very likely no longer valid (in terms of difficulty).

Thanks for that explanation. I think I understand now. Bit of a bummer to do all that work and lose it because you were a micro-second too late, but I guess that's life. Smiley

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
AliceWonderMiscreations
Full Member
***
Offline Offline

Activity: 182
Merit: 107


View Profile WWW
February 18, 2016, 10:21:00 AM
 #7

Why can't the miner use the PoW for the orphaned block to create a completely new block to add to the current longest chain? If that PoW hasn't been used in the current chain, then surely it can be retried.

Part of the data that is hashed in order to find a valid block is the reference to the previous block in the chain. If you change that in an orphaned block the hash is different and very likely no longer valid (in terms of difficulty).

Thanks for that explanation. I think I understand now. Bit of a bummer to do all that work and lose it because you were a micro-second too late, but I guess that's life. Smiley

It's really the only way non-centralized mining can work.

And being a micro-second two late doesn't mean your block won't get used, it really only depends upon which of the blocks the next block chose.

So you can solve the block after I solved the block but because the miner to solve the next block didn't get my block but got yours instead, yours is the one the network chooses.

Just like real mining, some like is always involved,

I hereby reserve the right to sometimes be wrong
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!