<p>The problem is that the Litecoin I used 0.8.4.7, does not have embedded mining software.</p>

<p>I ended up with two solutions:</p>

<ol>
<li>Create mining pool and then:

<ul>
<li>connect nodes to each other</li>
<li>run the miner on my mining pool</li>
</ul></li>
<li>Compile and run (-gen=1 option) old Litecoin node then connect to th
e other nodes one.</li>
</ol>

CC BY-SA 3.0
2018-03-19T11:28:06.963Z
Welcome to Bitcoin.SE! You can help the site by marking answers as accepted if they are correct and address the question so that the question does not remain as "unanswered".
Willtech
CC BY-SA 4.0
2017-12-04T14:42:33.300Z
2018-10-19T07:48:08.697Z
2018-10-19T07:48:08.697Z
Wojtek B
<p>remove gen=0
whit configuracion --> yourcoin.conf </p>

<p>and execute </p>

<p>./minerd -a scrypt --url=http://"YOUR IP":"YOUR PORT"/</p>

CC BY-SA 3.0
2018-04-20T13:13:24.350Z
gen=0 has nothing to do with it by default gen means generate coins using core and it already disabled.
zhiyan114
CC BY-SA 3.0
2017-12-01T20:14:23.257Z
2017-12-01T20:14:23.257Z
Carlos Gamarra charlie
<p>I got this working by running two instances of wallet-qt on different ports (port= and rpcport= in the .conf file) and having one connect to the other. It seems the wallet needs at least one peer before it will talk to cpuminer.</p>

CC BY-SA 4.0
2018-10-19T07:41:10.367Z
This will work for old Litecoin.
I was working on 0.8.7.4, you can't mine on it because the mining part is removed from the source code. I ended up creating own mining pool and it's work as expected. Second option is to compile the old software with mining code and connect it to the new nodes... But now I building mining pools, much easier to me.
Wojtek B
CC BY-SA 4.0
2018-10-20T08:06:54.597Z
It doesn't need the "mining part". I didn't have to use the "gen=1" setting; I used cpuminer to do the mining.
Chris Moore
CC BY-SA 4.0
2018-10-17T21:54:01.920Z
2018-10-17T21:54:01.920Z
Chris Moore
<p>I apologise if I put this question in wrong place.</p>

<p>I created new altcoin based on litecoin source code.
All looks ok, wallet and wallet-qt are compiled and running.
However when I trying to mine using cpuminer (minerd) I getting 500 error.</p>

<p>I put this settings to *coin.conf file:</p>

<pre><code>rpcuser=miner1
rpcpassword=some_password_here
rpcallowip=127.0.0.1
rcpport=9332
server=1
gen=0
</code></pre>

<p>Command for minerd: </p>

<pre><code>minerd -a scrypt -o http://127.0.0.1:9332 -O miner1:some_password_here
</code></pre>

<p>Minerd output: </p>

<pre><code>[2017-06-29 10:38:02] 1 miner threads started, using 'scrypt' algorithm.
[2017-06-29 10:38:02] HTTP request failed: The requested URL returned error: 500 Internal Server Error
[2017-06-29 10:38:02] json_rpc_call failed, retry after 30 seconds
</code></pre>

<p>What I'm doing wrong? Is there something else I have to do to "launch" my new crypto currency?</p>

<p>Thank you for your help.</p>

CC BY-SA 3.0
2017-06-29T22:53:23.943Z
are you running your coin wallet? try removing the http:// part of the url
Albert S
CC BY-SA 3.0
2017-06-30T09:26:36.630Z
Yes, I run 3 wallets, each on separate VM, they can connect to each other.
Wojtek B
<litecoin><miner-configuration><cpu-mining><altcoin-development>
Mining new litecoin based altcoin. Internal Server Error 500
Wojtek B
# Mining new litecoin based altcoin. Internal Server Error 500

(Asked by: username_0 on 2017-06-29)

I apologise if I put this question in wrong place.
I created new altcoin based on litecoin source code.
All looks ok, wallet and wallet-qt are compiled and running.
However when I trying to mine using cpuminer (minerd) I getting 500 error.
I put this settings to *coin.conf file:
rpcuser=miner1
rpcpassword=some_password_here
rpcallowip=127.0.0.1
rcpport=9332
server=1
gen=0

Command for minerd: 
minerd -a scrypt -o http://127.0.0.1:9332 -O miner1:some_password_here

Minerd output: 
[2017-06-29 10:38:02] 1 miner threads started, using 'scrypt' algorithm.
[2017-06-29 10:38:02] HTTP request failed: The requested URL returned error: 500 Internal Server Error
[2017-06-29 10:38:02] json_rpc_call failed, retry after 30 seconds

What I'm doing wrong? Is there something else I have to do to "launch" my new crypto currency?
Thank you for your help.

**Tags:** litecoin, miner-configuration, cpu-mining, altcoin-development

> **Comments:**
> **username_1**: are you running your coin wallet? try removing the http:// part of the url  
> **username_0**: Yes, I run 3 wallets, each on separate VM, they can connect to each other.  

---

## 3 answers

### Answer by username_0 on 2017-12-04. Score: 1

The problem is that the Litecoin I used 0.8.4.7, does not have embedded mining software.

I ended up with two solutions:

1. Create mining pool and then:
   * connect nodes to each other
   * run the miner on my mining pool
2. Compile and run (-gen=1 option) old Litecoin node then connect to th
   e other nodes one.

> **Comments:**
> **username_2**: Welcome to Bitcoin.SE! You can help the site by marking answers as accepted if they are correct and address the question so that the question does not remain as "unanswered".  

---

### Answer by username_3 on 2017-12-01. Score: 0

remove gen=0
whit configuracion --> yourcoin.conf

and execute

./minerd -a scrypt --url=http://"YOUR IP":"YOUR PORT"/

> **Comments:**
> **username_4**: gen=0 has nothing to do with it by default gen means generate coins using core and it already disabled.  

---

### Answer by username_5 on 2018-10-17. Score: 0

I got this working by running two instances of wallet-qt on different ports (port= and rpcport= in the .conf file) and having one connect to the other. It seems the wallet needs at least one peer before it will talk to cpuminer.

> **Comments:**
> **username_0**: This will work for old Litecoin. I was working on 0.8.7.4, you can't mine on it because the mining part is removed from the source code. I ended up creating own mining pool and it's work as expected. Second option is to compile the old software with mining code and connect it to the new nodes... But now I building mining pools, much easier to me.  
> **username_5**: It doesn't need the "mining part". I didn't have to use the "gen=1" setting; I used cpuminer to do the mining.  

---

