<blockquote>
  <p>If it's a lottery why is it necessary for an attacker to have more compute power then the rest of the network? Can it have a chance to get ahead of main blockchain generation if it is just lucky?</p>
</blockquote>

<p>Yes, a miner could attempt to 'get lucky' and pull of this attack with less than 51% of the hashing power. Keep in mind, if the attack fails, then the miner will have lost money attempting it. 51% is the point at which the miner should succeed <strong>on average</strong>. </p>

<p>Note: mining is <em>not</em> a lottery by definition, it is only comparable to one in certain ways.</p>

CC BY-SA 4.0
2018-11-23T09:12:34.507Z
"51% is the point at which the miner should succeed on average.". Thanks, this phrase confirms my understanding.
Kos L.A.
CC BY-SA 4.0
2018-11-23T03:25:52.673Z
2018-11-23T03:25:52.673Z
chytrik
<p>As per many descriptions block hash is calculated based on it's headers and nonce field. The latter gives a chance to get the value that is less then a target by incrementing it. If it's a lottery why is it necessary for an attacker to have more compute power then the rest of the network? Can it have a chance to get ahead of main blockchain generation if it is just lucky? I.e. nonce's it uses for own blocks generation will be always giving him desired block hash too soon? Or is it just that probability is so low that we can safely assume that this never happen?</p>

<doublespend>
Why "double spent" can only happen if attacker controls 51% (or more) of the network compute power?
Kos L.A.
# Why "double spent" can only happen if attacker controls 51% (or more) of the network compute power?

(Asked by: username_0 on 2018-11-22)

As per many descriptions block hash is calculated based on it's headers and nonce field. The latter gives a chance to get the value that is less then a target by incrementing it. If it's a lottery why is it necessary for an attacker to have more compute power then the rest of the network? Can it have a chance to get ahead of main blockchain generation if it is just lucky? I.e. nonce's it uses for own blocks generation will be always giving him desired block hash too soon? Or is it just that probability is so low that we can safely assume that this never happen?

**Tags:** doublespend


---

## 1 answers

### Answer by username_1 on 2018-11-23. Score: 1 | Accepted answer

> If it's a lottery why is it necessary for an attacker to have more compute power then the rest of the network? Can it have a chance to get ahead of main blockchain generation if it is just lucky?

Yes, a miner could attempt to 'get lucky' and pull of this attack with less than 51% of the hashing power. Keep in mind, if the attack fails, then the miner will have lost money attempting it. 51% is the point at which the miner should succeed **on average**.

Note: mining is *not* a lottery by definition, it is only comparable to one in certain ways.

> **Comments:**
> **username_0**: "51% is the point at which the miner should succeed on average.". Thanks, this phrase confirms my understanding.  

---

