Bitcoin Forum
January 18, 2018, 10:20:06 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: what happens to transactions when a block is orphaned.  (Read 498 times)
Sniper44
Hero Member
*****
Offline Offline

Activity: 686


View Profile
March 01, 2017, 04:29:56 PM
 #1

lets assume block 455300 is orphaned and it contained tx1 and tx2.

block 455300 is mined by another miner and that is the longest chain.
it contains tx1 and tx3

- is that possible?

- what will happen to tx2? will it exist in memory pool or disappears?

to the moon with bitcoin...
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
achow101
Staff
Legendary
*
Offline Offline

Activity: 1288


38A35VNc17P7fenEDkLvkTMppwLwTeEeT7


View Profile WWW
March 01, 2017, 04:38:36 PM
 #2

If tx1, tx2, and tx3 are unrelated to each other, then scenario is entirely possible and basically happens every time there is an orphaned block.

tx2 will go back to the mempool if it is not included in the longest chain.

odolvlobo
Legendary
*
Offline Offline

Activity: 2016



View Profile
March 02, 2017, 08:24:48 AM
 #3

lets assume block 455300 is orphaned and it contained tx1 and tx2.

block 455300 is mined by another miner and that is the longest chain.
it contains tx1 and tx3

- is that possible?

- what will happen to tx2? will it exist in memory pool or disappears?

When a node dumps an orphaned block, its transactions are returned to the list of unconfirmed transactions, unless it has already been included in a block in the new chain.

So, in your example, tx1 is still confirmed, but tx2 is no longer confirmed and is available to be included in the next block.

Buy bitcoins with cash from somebody near you: LocalBitcoins
Join an anti-signature campaign: DannyHamilton's ignore list
MegaDice
Member
**
Offline Offline

Activity: 92


View Profile WWW
April 05, 2017, 10:58:43 PM
 #4

I case of orphaned block, your transaction might not automatically go into the mempool after it no longer exists on the longer chain. Some bitcoin clients have support for re-broadcasting transactions and you can even do it online. If your transaction disappears and is unseen on block explorer sites like blockchain.info.... then you need to rebroadcast. Google if and you will find some ways to do it.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!