<p>I am just learning the bitcoin codes for version bitcoin-0.20 and I make it successfully.
Additionally, I have only one PC. I want to mine continuously in segtsest, however I only found methods below:</p>
<pre><code> == Generating ==
    generatetoaddress nblocks &quot;address&quot; ( maxtries )
    generatetodescriptor num_blocks &quot;descriptor&quot; ( maxtries )
</code></pre>
<p>But these methods can't mine continuously. Hence, would you please tell me how to mine continuously in segtest using version bitcoin-0.20?</p>
<p>Thank you very much.</p>

CC BY-SA 4.0
2021-08-27T13:45:25.073Z
You mean regtest? You'll need to continuously call this functions in a loop, but why would you want that? Alternatively, you can use external mining software using the GBT protocol.
Pieter Wuille
CC BY-SA 4.0
2021-08-27T15:16:23.010Z
Do you mean `regtest` or `signet`?
Murch
CC BY-SA 4.0
2021-08-29T14:15:54.950Z
I mean  regtest.
jiebang
CC BY-SA 4.0
2021-08-29T14:17:18.473Z
thank you very much.  would you please tell me the name of the external mining software using the GBT protocol ?
jiebang
CC BY-SA 4.0
2021-08-29T14:17:53.550Z
my aim is to verify some function of bitcoin in regtest.thank you .
jiebang
CC BY-SA 4.0
2021-08-29T14:19:23.257Z
I just want to  simulate miner continuously of maintest.
jiebang
<bitcoind><regtest><signet>
How to mine continuously in segtest with version bitcoin-0.20?
jiebang
# How to mine continuously in segtest with version bitcoin-0.20?

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

I am just learning the bitcoin codes for version bitcoin-0.20 and I make it successfully.
Additionally, I have only one PC. I want to mine continuously in segtsest, however I only found methods below:

```
 == Generating ==
    generatetoaddress nblocks "address" ( maxtries )
    generatetodescriptor num_blocks "descriptor" ( maxtries )

```

But these methods can't mine continuously. Hence, would you please tell me how to mine continuously in segtest using version bitcoin-0.20?

Thank you very much.

**Tags:** bitcoind, regtest, signet

> **Comments:**
> **username_1**: You mean regtest? You'll need to continuously call this functions in a loop, but why would you want that? Alternatively, you can use external mining software using the GBT protocol.  
> **username_2**: Do you mean `regtest` or `signet`?  
> **username_0**: I mean  regtest.  
> **username_0**: thank you very much.  would you please tell me the name of the external mining software using the GBT protocol ?  
> **username_0**: my aim is to verify some function of bitcoin in regtest.thank you .  
> **username_0**: I just want to  simulate miner continuously of maintest.  

---

## 0 answers

