<blockquote>
  <p>But what will happen if 2 (or more) nodes will solve the next block at the same time,and they will start to build their own chain ?</p>
</blockquote>

<p>Nothing. Nodes will temporarily disagree on the longest chain, but only in the very last block.</p>

<blockquote>
  <p>Which longest chain (if their chains has the same size) will be adopted ?</p>
</blockquote>

<p>Whichever one happens to get a block mined after it first. That chain will then be definitively longer than the other one.</p>

<blockquote>
  <p>When (and who) decide to confirm the longest chain ?</p>
</blockquote>

<p>Every node all the time. Of course, for blocks very close to the tip of the chain, you can't be confident they'll remain in the longest chain. But once you go back three blocks, confidence reaches will in excess of 99.9%. For very high value transactions, you could wait as much as six blocks.</p>

CC BY-SA 4.0
2018-05-03T06:09:00.297Z
2018-05-03T06:09:00.297Z
David Schwartz
<p>According to:</p>

<p><a href="https://medium.com/@micheledaliessi/how-does-the-blockchain-work-98c8cd01d2ae" rel="nofollow noreferrer">How Does the Blockchain Work?</a></p>

<ol>
<li><p>Each node will adopt the longest chain as the only option.</p>

<p>But what will happen if 2 (or more) nodes will solve the next block at the same time,and they will start to build their own chain ?</p>

<p>Which longest chain (if their chains has the same size) will be adopted ?</p></li>
<li><p>When (and who) decide to confirm the longest chain ?</p></li>
</ol>

<blockchain><best-chain>
Several Q's about consensus about the longest chain and when this chain be confirmed?
user3668129
# Several Q's about consensus about the longest chain and when this chain be confirmed?

(Asked by: username_0 on 2018-05-03)

According to:

[How Does the Blockchain Work?](https://medium.com/@micheledaliessi/how-does-the-blockchain-work-98c8cd01d2ae)

1. Each node will adopt the longest chain as the only option.

   But what will happen if 2 (or more) nodes will solve the next block at the same time,and they will start to build their own chain ?

   Which longest chain (if their chains has the same size) will be adopted ?
2. When (and who) decide to confirm the longest chain ?

**Tags:** blockchain, best-chain


---

## 1 answers

### Answer by username_1 on 2018-05-03. Score: 1

> But what will happen if 2 (or more) nodes will solve the next block at the same time,and they will start to build their own chain ?

Nothing. Nodes will temporarily disagree on the longest chain, but only in the very last block.

> Which longest chain (if their chains has the same size) will be adopted ?

Whichever one happens to get a block mined after it first. That chain will then be definitively longer than the other one.

> When (and who) decide to confirm the longest chain ?

Every node all the time. Of course, for blocks very close to the tip of the chain, you can't be confident they'll remain in the longest chain. But once you go back three blocks, confidence reaches will in excess of 99.9%. For very high value transactions, you could wait as much as six blocks.


---

