Bitcoin Forum
November 15, 2024, 08:27:46 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What if there're 2 blocks verified?  (Read 155 times)
freedomseeker (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 1


View Profile
January 13, 2018, 05:32:57 PM
Merited by ABCbits (1)
 #1

Hi I'm new to this community and this is my first post.

I learn that bitcoin always take the longest blockchain for consensus but from time to time there'll be two blockchains in parallel if two miners solved the hash. I want to know if my tx is in one of the chain, and that chain turns out to be the invalid one, does my tx also become invalid and how to make sure my tx is really verified?

Sorry my question may sound dumb. Thanks for answering Smiley
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
January 13, 2018, 05:44:05 PM
Merited by ABCbits (1)
 #2

No, your question is not dumb.
It explains why bitcoin doesn't have faster block times.

Rarely two blocks are found at the same time but by different miners, when both a broadcast the nodes favor the one with more proof-of-work.
The other block becomes orphaned and the transactions there that were confirmed for a bit become unconfirmed if they're not present in the competing block that was found and they return to the mempool awaiting the next block.

That's hey you're advised to wait for 6 confirmations to accept Bitcoin as finally confirmed in case there is a block reorg.

If you want to read more on this check out Andreas Antonopolous' book Mastering Bitcoin.
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!