Bitcoin Forum
November 12, 2024, 02:52:44 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do transactions in orphaned blocks get back into the pool?  (Read 3224 times)
thinkloop (OP)
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
December 20, 2013, 10:08:35 PM
 #1

What happens if two miners solve a block at about the same time, with different transactions in them, and one of the blocks gets rejected - aka becomes orphaned? How do transactions in the orphaned block get back into the pool of transactions to be mined and confirmed again?
thinkloop (OP)
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
December 24, 2013, 11:58:19 PM
 #2

Nothing?
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
December 25, 2013, 12:13:48 AM
 #3

It is Christmas eve dude ...

still if it can't wait.   When nodes learn of a new block that orphans an existing block they add any tx from the orphaned block back to the memory pool when orphaning it.  Likewise nodes remove txs from the memory pool when they receive a block which extends the longest chain.   It is possible the tx is in both blocks and thus is added and removed from the memory pool as part of the reorg.

Orphaned tx can't be "lost" unless there is a double spend.
thinkloop (OP)
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
January 04, 2014, 12:36:07 AM
 #4

lol, you're right. Thanks for your explanation, makes a lot of sense!
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!