<p>For development it's often helpful to start both nodes in regression test mode (regtest mode). The developer has his own private blockchain and can choose when to create a new block. You can use <code>bitcoin-cli -regtest generate 1</code> to generate a new block.</p>

<p>For more information see <a href="https://bitcoin.org/en/developer-examples#regtest-mode" rel="nofollow noreferrer" title="Developer Examples - Regtest Mode">Developer Examples - Regtest Mode</a>.</p>

CC BY-SA 4.0
2018-10-22T17:53:55.493Z
I know all that but I don't like having different addresses. I want a 100% bitcoin network that produces a block every 10 minutes, etc. The real thing but private. I am developing a rather complex app and I need to test it as real as possible.
educob
CC BY-SA 4.0
2018-10-22T12:22:51.083Z
2018-10-22T12:22:51.083Z
0xb10c
<p>cpuminer does work for solo mining.  I've used it successfully on the BCH testnet.  </p>

<p>I don't have the exact command line handy right now, but if you can't figure it out, I can try to dig it up.</p>

CC BY-SA 4.0
2018-10-22T17:55:57.003Z
I thought I could do solo mining and tried and tried ( ./minerd  --threads=1 --coinbase-addr=3GGvSvodq8Gp5pjWZxhihBxo4gEtSjKtKo -o http://127.0.0.1:8332  -O xxx:yyy --no-longpoll --no-getwork --no-stratum ) until I realized I had to set a mining pool server which I don't know how to do. So I wonder if there is a software to do solo mining.
educob
CC BY-SA 4.0
2018-10-22T19:53:02.247Z
No, you don't have to set up a mining pool server.  cpuminer can connect directly to your bitcoind.  When I have some time, I can try to look up the syntax.
Nate Eldredge
CC BY-SA 4.0
2018-10-22T14:34:22.447Z
2018-10-22T14:34:22.447Z
Nate Eldredge
<p>I finally learn that mainnet has (among many other things) checkpoints (certain blocks with their hash hard coded and check they agree with the blockchain).
So starting a private mainnet it's simply not possible (wihtout touching the code).</p>

CC BY-SA 4.0
2018-10-27T19:12:39.057Z
2018-10-27T19:12:39.057Z
educob
<p>For development reasons I'd like to have a private "real" bitcoin mainnet network.
Bitcoin-core doesn't support mining any more.</p>

<p>I have set up a network of 2 nodes (using connect conf command).
CPUminer is designed (as far as I know) to connect to a mining pool server.</p>

<p>Any idea how to directly do cpu solo mining with bitcoin?</p>

<p>Thanks.</p>

CC BY-SA 4.0
2018-10-22T10:58:08.543Z
It's not a duplicate of that thread. They are only loosely related.
educob
CC BY-SA 4.0
2018-10-22T12:51:29.607Z
Perhaps update the title of the question to reflect this is about a private test network. It does look very much like a duplicate right now.
Pieter Wuille
<cpu><cpuminer>
Is it technically possible to solo mine bitcoin using cpu without a pool? How? Ubuntu
educob
# Is it technically possible to solo mine bitcoin using cpu without a pool? How? Ubuntu

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

For development reasons I'd like to have a private "real" bitcoin mainnet network.
Bitcoin-core doesn't support mining any more.

I have set up a network of 2 nodes (using connect conf command).
CPUminer is designed (as far as I know) to connect to a mining pool server.

Any idea how to directly do cpu solo mining with bitcoin?

Thanks.

**Tags:** cpu, cpuminer

> **Comments:**
> **username_0**: It's not a duplicate of that thread. They are only loosely related.  
> **username_1**: Perhaps update the title of the question to reflect this is about a private test network. It does look very much like a duplicate right now.  

---

## 3 answers

### Answer by username_2 on 2018-10-22. Score: 3

For development it's often helpful to start both nodes in regression test mode (regtest mode). The developer has his own private blockchain and can choose when to create a new block. You can use `bitcoin-cli -regtest generate 1` to generate a new block.

For more information see [Developer Examples - Regtest Mode](https://bitcoin.org/en/developer-examples#regtest-mode "Developer Examples - Regtest Mode").

> **Comments:**
> **username_0**: I know all that but I don't like having different addresses. I want a 100% bitcoin network that produces a block every 10 minutes, etc. The real thing but private. I am developing a rather complex app and I need to test it as real as possible.  

---

### Answer by username_3 on 2018-10-22. Score: 0

cpuminer does work for solo mining. I've used it successfully on the BCH testnet.

I don't have the exact command line handy right now, but if you can't figure it out, I can try to dig it up.

> **Comments:**
> **username_0**: I thought I could do solo mining and tried and tried ( ./minerd  --threads=1 --coinbase-addr=3GGvSvodq8Gp5pjWZxhihBxo4gEtSjKtKo -o http://127.0.0.1:8332  -O xxx:yyy --no-longpoll --no-getwork --no-stratum ) until I realized I had to set a mining pool server which I don't know how to do. So I wonder if there is a software to do solo mining.  
> **username_3**: No, you don't have to set up a mining pool server.  cpuminer can connect directly to your bitcoind.  When I have some time, I can try to look up the syntax.  

---

### Answer by username_0 on 2018-10-27. Score: 0

I finally learn that mainnet has (among many other things) checkpoints (certain blocks with their hash hard coded and check they agree with the blockchain).
So starting a private mainnet it's simply not possible (wihtout touching the code).


---

