<p>By default, Bitcoin-QT will generate new addresses to mine to.  If you use the Encrypt Wallet feature, it appears to always mine to the same address instead, but it's still not user-selectable.</p>

<p>If you do want to CPU mine to a specific address (e.g. for testing on the RegTest mode), you can use mining software like <a href="https://bitcointalk.org/index.php?topic=55038.0" rel="nofollow">cpuminer/minerd</a> in "solo mining" mode to do so.</p>

CC BY-SA 3.0
2015-02-11T02:25:38.967Z
Actually, it grabs an address out of the keypool. If it doesn't find a solution, it returns the address to the keypool.
Nick ODell
CC BY-SA 3.0
2015-02-10T18:29:44.627Z
2015-02-10T18:29:44.627Z
Eric W
<p>I know it's inefficient and a bad idea and all that, but I just discovered the <code>setgenerate</code> console command in Bitcoin-Qt (v0.8.1-beta, MAC) and I was wondering how to set the recipient address of "all those" Bitcoins I'm about to generate?</p>

<bitcoin-core><miner-configuration>
How to set Bitcoin-Qt setgenerate mining recipient?
pinhead
# How to set Bitcoin-Qt setgenerate mining recipient?

(Asked by: username_0 on 2013-04-12)

I know it's inefficient and a bad idea and all that, but I just discovered the `setgenerate` console command in Bitcoin-Qt (v0.8.1-beta, MAC) and I was wondering how to set the recipient address of "all those" Bitcoins I'm about to generate?

**Tags:** bitcoin-core, miner-configuration


---

## 1 answers

### Answer by username_1 on 2015-02-10. Score: 2

By default, Bitcoin-QT will generate new addresses to mine to. If you use the Encrypt Wallet feature, it appears to always mine to the same address instead, but it's still not user-selectable.

If you do want to CPU mine to a specific address (e.g. for testing on the RegTest mode), you can use mining software like [cpuminer/minerd](https://bitcointalk.org/index.php?topic=55038.0) in "solo mining" mode to do so.

> **Comments:**
> **username_2**: Actually, it grabs an address out of the keypool. If it doesn't find a solution, it returns the address to the keypool.  

---

