<blockquote>
  <p>Why would the attacker target new cryptocurrencies?</p>
</blockquote>

<p>Why not? He has the same reasons as you to create blocks</p>

<blockquote>
  <p>What changes in the code i have to implement to prevent the 51% attack?</p>
</blockquote>

<p>Disable decentralization. Allow mining from one pubkey/address only :)</p>

CC BY-SA 3.0
2018-04-06T04:57:24.647Z
Where in the code i implement allow mining from one pubkey and address?
pbu
CC BY-SA 3.0
2018-04-06T04:59:04.867Z
It's not a serious suggestion.
Nate Eldredge
CC BY-SA 3.0
2018-04-06T11:54:06.977Z
It is serious. I have to say that it is ONLY choice. No other suggestions can prevent attack-51 in any crypto
amaclin
CC BY-SA 3.0
2018-04-06T04:37:30.077Z
2018-04-06T04:37:30.077Z
amaclin
<p>I have experienced 51% attack after launching a new altcoin last month. </p>

<p>While i mined only 100 blocks using <code>coin-cli generate 1</code>, i noticed somebody already mined 2000 blocks within minutes attacking my network. I was running 2 nodes (without wallet) and 1 node (with wallet installed) in Ubuntu server.</p>

<ul>
<li>Why would the attacker target new cryptocurrencies? Is he after coins? </li>
<li>What changes in the code i have to implement to prevent the 51% attack?</li>
</ul>

<p>My altcoin is based on scrypt (litecoin), Block generation time is 10 minutes/hour, Coin maturity 100 blocks, with parameters almost same as bitcoin.</p>

<altcoin><majority-attack>
51% attack on New coins
pbu
# 51% attack on New coins

(Asked by: username_0 on 2018-04-06)

I have experienced 51% attack after launching a new altcoin last month.

While i mined only 100 blocks using `coin-cli generate 1`, i noticed somebody already mined 2000 blocks within minutes attacking my network. I was running 2 nodes (without wallet) and 1 node (with wallet installed) in Ubuntu server.

* Why would the attacker target new cryptocurrencies? Is he after coins?
* What changes in the code i have to implement to prevent the 51% attack?

My altcoin is based on scrypt (litecoin), Block generation time is 10 minutes/hour, Coin maturity 100 blocks, with parameters almost same as bitcoin.

**Tags:** altcoin, majority-attack


---

## 1 answers

### Answer by username_1 on 2018-04-06. Score: 2

> Why would the attacker target new cryptocurrencies?

Why not? He has the same reasons as you to create blocks

> What changes in the code i have to implement to prevent the 51% attack?

Disable decentralization. Allow mining from one pubkey/address only :)

> **Comments:**
> **username_0**: Where in the code i implement allow mining from one pubkey and address?  
> **username_2**: It's not a serious suggestion.  
> **username_1**: It is serious. I have to say that it is ONLY choice. No other suggestions can prevent attack-51 in any crypto  

---

