<p>with p2pool at least for the coins are 'merged' mining you cannot reconfigure them to go to any other account except for the default account of that wallet.  However  you may be able to work around this in one of the following ways depending on your coding ability.</p>
<p><strong>Monitor P2Pool logs and trigger script</strong></p>
<p>Watch the p2pool logs and when a block is found trigger a script.
This can be achieved using swatch (linux tool for watching logs files) and looking for merged blocks that appear in /path/to/p2pool/data/bitcoin/log  (cant find the example merged block right now will edit later to include)  so in this instance what you would do is use this command:  swatch -t /path/to/p2pool/data/bitcoin/log  and create a ~/.swatchrc in your home directory with something like this:</p>
<pre><code>watchfor /SHARE|BLOCK/
    exec echo &quot;P2Pool Event:\n\n$_\n&quot; | python ~/pyPushBullet/pushbullet_cmd.py 6xxxxxxxxxxxxxxxxxxxxxxxx60993c note xxxxxx&quot;P2Pool Notification&quot; &quot;$_&quot;
</code></pre>
<p>Im using push bullet to send notifications on share and block notifications.  however in your case you would want to craft a script to check the block itself for merged outputs.</p>
<p><strong>Wallet Notify</strong></p>
<p>Most Crypto Clients now let you configure an action for</p>
<pre><code>  -blocknotify=&lt;cmd&gt;     Execute command when the best block changes (%s in cmd is replaced by block hash)
  -walletnotify=&lt;cmd&gt;    Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)
  -alertnotify=&lt;cmd&gt;     Execute command when a relevant alert is received (%s in cmd is replaced by message)
</code></pre>
<p><a href="https://en.bitcoin.it/wiki/Running_Bitcoin" rel="nofollow noreferrer">Courtesy Off The Bitcoin Wiki</a></p>
<p>again in the same vein as the first optin you could  create a script that is triggered on wallet notify for the Nnamecoin wallet and move the coins from the default addreaa to you chosen address.</p>

CC BY-SA 3.0
2014-03-11T05:16:27.893Z
Thanks. Another option would be to edit the wallet and change the default address. I'd need to check if the default NMC address changes when it receives coins; I think it does, so I'd still need to use one of these.
Daniel H
CC BY-SA 3.0
2014-03-11T09:56:33.053Z
Daniel have you got an resources with info on editing the wallet, its not something I've done before....
hafnero
CC BY-SA 3.0
2014-03-09T07:21:51.793Z
2014-03-09T07:21:51.793Z
2020-06-16T11:10:03.350Z
hafnero
<p>Okay, so there's a few things about merged mining. The pool must offer it for it to work. I use slosh pool which does it and they mine both bit and name coin; with them, the pool automatically does it and there aren't any extra settings other than the basic login into the miner and pool. It keeps going until you reach an amount you have set and then it deposits it into your wallet. With your pool, it could be different.</p>

<p><strong>Brief explanation:</strong></p>

<ul>
<li>pool must offer merged mining for you to merge mine.</li>
<li>I use slosh pool</li>
<li>They automatically do both and deposit into your wallet after you reach the amount you </li>
<li>yours might be different </li>
</ul>

CC BY-SA 3.0
2013-02-10T10:19:54.300Z
I guess you mean _slush_ pool?
o0'.
CC BY-SA 3.0
2013-08-24T15:56:22.793Z
BTCGuild offers merged mining as well.
aceinthehole
CC BY-SA 3.0
2013-10-18T12:29:35.877Z
I assume slush. Anyway, to always have your namecoin sending funds you would need to write a good bit of code. The tl;dr of it is this: you need to change the block coinbase to have it directed to the wallet of your choice. And even the I am not completely sure that would work. I mean in theory it should... But right now nmc needs tlc just need to get their code fixed Amd here's whyhttp://dot-bit.org/forum/viewtopic.php?f=2&t=1295&start=10
Joe White
CC BY-SA 3.0
2013-02-10T08:14:41.617Z
2013-02-10T20:17:01.790Z
2013-02-10T20:17:01.790Z
user2869
<p>I assume slush. Anyway, to always have your namecoin sending funds you would need to write a good bit of code. The tl;dr of it is this: you need to change the block coinbase to have it directed to the wallet of your choice. </p>

CC BY-SA 3.0
2014-01-08T02:39:07.277Z
2014-01-08T02:39:07.277Z
user11712
<p>I also use p2pool to do merged mining. I have searched the code extensively and do not believe it is possible to mine to an address. Instead, as another answerer suggested, the block reward goes to the default account associated with your namecoind.</p>

CC BY-SA 3.0
2014-01-09T02:13:34.583Z
2014-01-09T02:13:34.583Z
atomicpirate
<p>Probally just goes to default NMC address</p>

CC BY-SA 3.0
2013-03-13T02:34:26.617Z
A bit more certainty would be great. Unless you can back this up with personal experience or a reference, a guess isn't very useful.
Highly Irregular
CC BY-SA 3.0
2013-10-18T12:32:51.763Z
I hate to say it, but at very least tell us why? Or you can always make a comment below the post too
Joe White
CC BY-SA 3.0
2013-03-12T22:18:21.680Z
2013-03-12T22:18:21.680Z
mubit
<p>I want to do merged mining with P2Pool, and I want any generated namecoins to go to a specific namecoin address in my wallet. I haven't seen a way to configure this in P2Pool or namecoind, and Google's turned up no hits. It seems as though it's either too obvious for anybody to mention in any guides, or like I'm the only one who wants to do this. If the latter, then why does nobody want this and why should I not do this?</p>

<namecoin><p2pool><merged-mining>
Specific namecoin address in merged mining
Daniel H
# Specific namecoin address in merged mining

(Asked by: username_0 on 2012-08-21)

I want to do merged mining with P2Pool, and I want any generated namecoins to go to a specific namecoin address in my wallet. I haven't seen a way to configure this in P2Pool or namecoind, and Google's turned up no hits. It seems as though it's either too obvious for anybody to mention in any guides, or like I'm the only one who wants to do this. If the latter, then why does nobody want this and why should I not do this?

**Tags:** namecoin, p2pool, merged-mining


---

## 5 answers

### Answer by username_1 on 2014-03-09. Score: 2 | Accepted answer

with p2pool at least for the coins are 'merged' mining you cannot reconfigure them to go to any other account except for the default account of that wallet. However you may be able to work around this in one of the following ways depending on your coding ability.

**Monitor P2Pool logs and trigger script**

Watch the p2pool logs and when a block is found trigger a script.
This can be achieved using swatch (linux tool for watching logs files) and looking for merged blocks that appear in /path/to/p2pool/data/bitcoin/log (cant find the example merged block right now will edit later to include) so in this instance what you would do is use this command: swatch -t /path/to/p2pool/data/bitcoin/log and create a ~/.swatchrc in your home directory with something like this:

```
watchfor /SHARE|BLOCK/
    exec echo "P2Pool Event:\n\n$_\n" | python ~/pyPushBullet/pushbullet_cmd.py 6xxxxxxxxxxxxxxxxxxxxxxxx60993c note xxxxxx"P2Pool Notification" "$_"

```

Im using push bullet to send notifications on share and block notifications. however in your case you would want to craft a script to check the block itself for merged outputs.

**Wallet Notify**

Most Crypto Clients now let you configure an action for

```
  -blocknotify=<cmd>     Execute command when the best block changes (%s in cmd is replaced by block hash)
  -walletnotify=<cmd>    Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)
  -alertnotify=<cmd>     Execute command when a relevant alert is received (%s in cmd is replaced by message)

```

[Courtesy Off The Bitcoin Wiki](https://en.bitcoin.it/wiki/Running_Bitcoin)

again in the same vein as the first optin you could create a script that is triggered on wallet notify for the Nnamecoin wallet and move the coins from the default addreaa to you chosen address.

> **Comments:**
> **username_0**: Thanks. Another option would be to edit the wallet and change the default address. I'd need to check if the default NMC address changes when it receives coins; I think it does, so I'd still need to use one of these.  
> **username_1**: username_0 have you got an resources with info on editing the wallet, its not something I've done before....  

---

### Answer by username_2 on 2013-02-10. Score: 0

Okay, so there's a few things about merged mining. The pool must offer it for it to work. I use slosh pool which does it and they mine both bit and name coin; with them, the pool automatically does it and there aren't any extra settings other than the basic login into the miner and pool. It keeps going until you reach an amount you have set and then it deposits it into your wallet. With your pool, it could be different.

**Brief explanation:**

* pool must offer merged mining for you to merge mine.
* I use slosh pool
* They automatically do both and deposit into your wallet after you reach the amount you
* yours might be different

> **Comments:**
> **username_3**: I guess you mean _slush_ pool?  
> **username_4**: BTCGuild offers merged mining as well.  
> **username_5**: I assume slush. Anyway, to always have your namecoin sending funds you would need to write a good bit of code. The tl;dr of it is this: you need to change the block coinbase to have it directed to the wallet of your choice. And even the I am not completely sure that would work. I mean in theory it should... But right now nmc needs tlc just need to get their code fixed Amd here's whyhttp://dot-bit.org/forum/viewtopic.php?f=2&t=1295&start=10  

---

### Answer by username_6 on 2014-01-08. Score: 0

I assume slush. Anyway, to always have your namecoin sending funds you would need to write a good bit of code. The tl;dr of it is this: you need to change the block coinbase to have it directed to the wallet of your choice.


---

### Answer by username_7 on 2014-01-09. Score: 0

I also use p2pool to do merged mining. I have searched the code extensively and do not believe it is possible to mine to an address. Instead, as another answerer suggested, the block reward goes to the default account associated with your namecoind.


---

### Answer by username_8 on 2013-03-12. Score: -2

Probally just goes to default NMC address

> **Comments:**
> **username_9**: A bit more certainty would be great. Unless you can back this up with personal experience or a reference, a guess isn't very useful.  
> **username_5**: I hate to say it, but at very least tell us why? Or you can always make a comment below the post too  

---

