<blockquote>
  <p>I am creating a new altcoin and i cant seem to figure out how to disable mining functionality with wallets using the debug console window. </p>
</blockquote>

<p>Remove the <code>generate</code> and <code>generatetoaddress</code> commands.</p>

<blockquote>
  <p>I am trying to mine all the coins myself, is there way to restrict all mining to me or specific IP addresses.</p>
</blockquote>

<p>Unless you modify blocks to include IP address information, no, there is not. You could restrict coinbase transactions to have only a specific output script which belongs to you so that blocks that have coinbase transactions where the coins go to another output script are considered invalid. However you will need to modify the mining code to use a fixed script instead of generating a new one for each block.</p>

CC BY-SA 3.0
2018-05-01T20:17:54.380Z
I did remove generate and generatetoaddress, it disables wallet mining, but i cannot generate blocks myself using litecoin-cli. Anyworkarounds?
pbu
CC BY-SA 3.0
2018-05-01T20:39:10.783Z
Don't remove generate and generatetoaddress for yourself. Remove it for the publicly available version of your coin.
Ava Chow
CC BY-SA 3.0
2018-05-01T19:46:36.367Z
2018-05-01T19:46:36.367Z
Ava Chow
<p>I am creating a new altcoin and i cant seem to figure out how to disable mining functionality with wallets using the debug console window. </p>

<p>I am trying to mine all the coins myself, is there way to restrict all mining to me or specific IP addresses.</p>

<p>I am using forking litecoin to create my altcoin.</p>

<p>Any advice or help with code is much apppreciated and helpful</p>

<wallet><altcoin><development><mining-reward>
How to disable mining functionality in wallet debug console?
pbu
# How to disable mining functionality in wallet debug console?

(Asked by: username_0 on 2018-05-01)

I am creating a new altcoin and i cant seem to figure out how to disable mining functionality with wallets using the debug console window.

I am trying to mine all the coins myself, is there way to restrict all mining to me or specific IP addresses.

I am using forking litecoin to create my altcoin.

Any advice or help with code is much apppreciated and helpful

**Tags:** wallet, altcoin, development, mining-reward


---

## 1 answers

### Answer by username_1 on 2018-05-01. Score: 1 | Accepted answer

> I am creating a new altcoin and i cant seem to figure out how to disable mining functionality with wallets using the debug console window.

Remove the `generate` and `generatetoaddress` commands.

> I am trying to mine all the coins myself, is there way to restrict all mining to me or specific IP addresses.

Unless you modify blocks to include IP address information, no, there is not. You could restrict coinbase transactions to have only a specific output script which belongs to you so that blocks that have coinbase transactions where the coins go to another output script are considered invalid. However you will need to modify the mining code to use a fixed script instead of generating a new one for each block.

> **Comments:**
> **username_0**: I did remove generate and generatetoaddress, it disables wallet mining, but i cannot generate blocks myself using litecoin-cli. Anyworkarounds?  
> **username_1**: Don't remove generate and generatetoaddress for yourself. Remove it for the publicly available version of your coin.  

---

