<p>Yes, the attacker needs to be faster than the rest of the network combined.  Being faster than the second-fastest miner is not enough.</p>

<p>I think this is where you are mistaken:</p>

<blockquote>
  <p>Blocks in the mainchain can only be added sequentially, hence the growth speed of the blockchain is at most the speed of the fastest miner in the network</p>
</blockquote>

<p>Yes, blocks are added sequentially, but I can't follow your logic as to why that means block growth only happens at the rate of the fastest miner.  If you are the fastest miner on the network, that <em>in no way</em> means that you are producing 100% of the blocks.  It means that you are producing the highest <em>proportion</em> of the total, which is still likely a minority.  Block growth still happens at a rate of the entire network <em>collectively</em>, regardless of who is fastest.</p>

<p>With that in mind, you can see why an attacker needs to produce blocks faster than the rest of the network combined.</p>

CC BY-SA 3.0
2017-11-15T19:57:14.717Z
The source of confusion is probably that the poster considers mining a block is a deterministic process that requires certain amount of sequential work, that cannot be paralelized. While in fact mining is a guessing process similar to the lottery where the person with 100 tickets is still unlikely to win the lottery comparing to 100000 tickets bought by the rest.
croraf
CC BY-SA 3.0
2017-11-15T20:07:36.980Z
Oh yes, I guess I see my misunderstanding. That the time needed for mining a block has a probability distribution with non-vanishing deviation is essential here. Thx Jestin and croraf.
Werner Thumann
CC BY-SA 4.0
2022-10-10T08:34:59.743Z
@Jestin [1/2] I am still not clear on the answer, probably because I don't understand the part "Block growth still happens at a rate of the entire network collectively". 

How does the growth depend on the entire network collectively? The nodes are working separately to solve the puzzle. It's not like they are combining their powers to solve the puzzle.
Shariq Hasan Khan
CC BY-SA 4.0
2022-10-10T08:35:37.353Z
@Jestin 2/2 "If you are the fastest miner on the network, that in no way means that you are producing 100% of the blocks"
If I were secretly mining on a sidechain, wouldn't this be true? And if I had the highest mining power in the network, I would eventually mine more blocks (in my sidechain) than the rest of the network working of the original chain?
Shariq Hasan Khan
CC BY-SA 4.0
2022-10-21T00:18:06.470Z
@ShariqHasanKhan "It's not like they are combining their powers to solve the puzzle"  They absolutely are.  Because each node on the network is guessing, it multiples the number of guesses being made.  Since it's random who will get it, the more collective random guessing, the faster the problem is solved.
Jestin
CC BY-SA 3.0
2017-11-15T19:35:24.343Z
2017-11-15T22:25:46.697Z
2017-11-15T22:25:46.697Z
Jestin
<p>Im just reading a book on the basics of blockchain and I encountered a confusion regarding the 51% attack. If I'm right, it says that an attacker holding 51% or more of the network's computing power can rewrite the blockchain to his own favor. </p>

<p>What confuses me is the following: Blocks in the mainchain can only be added sequentially, hence the growth speed of the blockchain is at most the speed of the fastest miner in the network. So if a attacker is faster than the fastest miner of the rest of the network can start at some lower block (maybe even the genesis block) and add his own blocks on a new branch one after the other. Since he is faster than the official main-chain, his branch will eventually be longer than the latter and consequently become the new main-chain.</p>

<p>So the attacker does not need 51% of the whole computing power, only more than any other node, which is usually much less than 51%. What is wrong here?</p>

<blockchain><attack><majority-attack>
51% attack clarification
Werner Thumann
# 51% attack clarification

(Asked by: username_0 on 2017-11-15)

Im just reading a book on the basics of blockchain and I encountered a confusion regarding the 51% attack. If I'm right, it says that an attacker holding 51% or more of the network's computing power can rewrite the blockchain to his own favor.

What confuses me is the following: Blocks in the mainchain can only be added sequentially, hence the growth speed of the blockchain is at most the speed of the fastest miner in the network. So if a attacker is faster than the fastest miner of the rest of the network can start at some lower block (maybe even the genesis block) and add his own blocks on a new branch one after the other. Since he is faster than the official main-chain, his branch will eventually be longer than the latter and consequently become the new main-chain.

So the attacker does not need 51% of the whole computing power, only more than any other node, which is usually much less than 51%. What is wrong here?

**Tags:** blockchain, attack, majority-attack


---

## 1 answers

### Answer by username_1 on 2017-11-15. Score: 5 | Accepted answer

Yes, the attacker needs to be faster than the rest of the network combined. Being faster than the second-fastest miner is not enough.

I think this is where you are mistaken:

> Blocks in the mainchain can only be added sequentially, hence the growth speed of the blockchain is at most the speed of the fastest miner in the network

Yes, blocks are added sequentially, but I can't follow your logic as to why that means block growth only happens at the rate of the fastest miner. If you are the fastest miner on the network, that *in no way* means that you are producing 100% of the blocks. It means that you are producing the highest *proportion* of the total, which is still likely a minority. Block growth still happens at a rate of the entire network *collectively*, regardless of who is fastest.

With that in mind, you can see why an attacker needs to produce blocks faster than the rest of the network combined.

> **Comments:**
> **username_2**: The source of confusion is probably that the poster considers mining a block is a deterministic process that requires certain amount of sequential work, that cannot be paralelized. While in fact mining is a guessing process similar to the lottery where the person with 100 tickets is still unlikely to win the lottery comparing to 100000 tickets bought by the rest.  
> **username_0**: Oh yes, I guess I see my misunderstanding. That the time needed for mining a block has a probability distribution with non-vanishing deviation is essential here. Thx username_1 and username_2.  
> **username_3**: @username_1 [1/2] I am still not clear on the answer, probably because I don't understand the part "Block growth still happens at a rate of the entire network collectively".   How does the growth depend on the entire network collectively? The nodes are working separately to solve the puzzle. It's not like they are combining their powers to solve the puzzle.  
> **username_3**: @username_1 2/2 "If you are the fastest miner on the network, that in no way means that you are producing 100% of the blocks" If I were secretly mining on a sidechain, wouldn't this be true? And if I had the highest mining power in the network, I would eventually mine more blocks (in my sidechain) than the rest of the network working of the original chain?  
> **username_1**: @username_3 "It's not like they are combining their powers to solve the puzzle"  They absolutely are.  Because each node on the network is guessing, it multiples the number of guesses being made.  Since it's random who will get it, the more collective random guessing, the faster the problem is solved.  

---

