<p>If you have some hash power, you can perform Finney attacks on testnet. With regtest, you can perform any attack requiring 51% of the hash power since on regtest you are 100% of the hash power.</p>

CC BY-SA 3.0
2017-08-27T20:49:45.660Z
2017-08-27T20:49:45.660Z
Ava Chow
<p>For a double spend, on <code>-testnet</code> create a transaction and let it broadcast. Restart bitcoind or bitcoin-qt with <code>-testnet -zapwallettxes=2</code> and then go ahead and respend your utxo's.</p>
<p>Note: I'll be honest, I haven't actually any BTC on testnet to try this with, you may also have to delete your testnet <code>mempool.dat</code> before restarting the node - try it?</p>

CC BY-SA 4.0
2018-01-25T07:58:12.677Z
2021-12-17T09:46:23.713Z
2021-12-17T09:46:23.713Z
Willtech
<p>I'm currently doing a research on bitcoin and I would like to know if there is anyway to replicate double spending in the testnet or regtest? If isn't possible is there any other type of "attacks" that can be replicated?</p>

<testnet><doublespend><regtest><academic-research>
Double spending on testnet or regtest?
nikuism
# Double spending on testnet or regtest?

(Asked by: username_0 on 2017-08-27)

I'm currently doing a research on bitcoin and I would like to know if there is anyway to replicate double spending in the testnet or regtest? If isn't possible is there any other type of "attacks" that can be replicated?

**Tags:** testnet, doublespend, regtest, academic-research


---

## 2 answers

### Answer by username_1 on 2017-08-27. Score: 0

If you have some hash power, you can perform Finney attacks on testnet. With regtest, you can perform any attack requiring 51% of the hash power since on regtest you are 100% of the hash power.


---

### Answer by username_2 on 2018-01-25. Score: 0

For a double spend, on `-testnet` create a transaction and let it broadcast. Restart bitcoind or bitcoin-qt with `-testnet -zapwallettxes=2` and then go ahead and respend your utxo's.

Note: I'll be honest, I haven't actually any BTC on testnet to try this with, you may also have to delete your testnet `mempool.dat` before restarting the node - try it?


---

