Bitcoin Forum
May 25, 2024, 10:28:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: About disregarded blocks.. (out of main chain)  (Read 633 times)
aup1 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
March 09, 2016, 08:16:11 AM
 #1

Hello, I'm new to this bitcoin system, so I've been reading some instructions which leads to a few questions.

1. let's assume two blocks are created at the same time which leads to two block chains(A,B).
In this case, I mean at the time when there are two block chains, I'm wondering what happens to the transactions(T) in both the last block of A and the last block of B.
It looks like T is going to be double verified?

2. continuing question no 1, let's say chain A becomes longer than chain B and becomes the main block chain.

In this case, I'm wondering what happens to the transactions only in the disregarded block (last block of block chain B). Are they disregarded like nothing happened? or something else?

Thanks.
 



 
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
March 09, 2016, 08:22:02 AM
 #2

Each mining node will build either on A or B (but never both) to extend the chain (so only one or other set of transactions is considered "confirmed" by each of the miners).

If a miner later sees that A or B was incorrect then they perform what is called a re-org which basically means that they undo everything (back the block before A/B) and then redo the transactions using the other block instead (so it doesn't work like any normal accounting ledger and why you need to wait for confirmations before being confident that a transaction should be considered "okay" assuming that you are accepting it for the purchase of goods, etc.).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
aup1 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
March 09, 2016, 08:27:44 AM
 #3

Each mining node will build either on A or B (but never both) to extend the chain (so only one or other set of transactions is considered "confirmed" by each of the miners).

If a miner later sees that A or B was incorrect then they perform what is called a re-org which basically means that they undo everything (back the block before A/B) and then redo the transactions using the other block instead (so it doesn't work like any normal accounting ledger and why you need to wait for confirmations before being confident that a transaction should be considered "okay" assuming that you are accepting it for the purchase of goods, etc.).


So you mean all the transactions are not "finally" confirmed until one block chain becomes the main chain right?

Thanks.
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
March 09, 2016, 08:35:47 AM
 #4

So you mean all the transactions are not "finally" confirmed until one block chain becomes the main chain right?

Effectively yes (understand that "finally" is not an absolute thing but the chances of a re-org happening after X confirmations gets harder and harder so that generally once say 6 confirmations have occurred it is considered as pretty much impossible for the transaction to end up later being "undone" by a re-org).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
aup1 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
March 09, 2016, 08:40:59 AM
 #5

So you mean all the transactions are not "finally" confirmed until one block chain becomes the main chain right?

Effectively yes (understand that "finally" is not an absolute thing but the chances of a re-org happening after X confirmations gets harder and harder so that generally once say 6 confirmations have occurred it is considered as pretty much impossible for the transaction to end up later being "undone" by a re-org).


Ah... I see there is a possibility of being wrong despite there exists the only main chain.

Thank you very much.
watashi-kokoto
Sr. Member
****
Offline Offline

Activity: 682
Merit: 269



View Profile
March 09, 2016, 01:58:54 PM
 #6

one chain will lose, either A or B
sumail1234
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
March 17, 2016, 09:17:06 AM
 #7

Thank you very much.
เกมคาสิโน
Bitsaurus
Hero Member
*****
Offline Offline

Activity: 873
Merit: 1007



View Profile
March 17, 2016, 08:12:30 PM
 #8

I would presume that up to 5 degrees (blocks) of branching can occur from the main chain since 6 is required for full confirmation.
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!