Bitcoin Forum
June 21, 2024, 09:57:52 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: what happens to transactions when a block is orphaned.  (Read 579 times)
Sniper44 (OP)
Hero Member
*****
Offline Offline

Activity: 714
Merit: 501


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...
achow101
Staff
Legendary
*
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


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: 4354
Merit: 3273



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.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
MegaDice
Member
**
Offline Offline

Activity: 143
Merit: 10

Bitcoin Dice - Megadice.com


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:  

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