Mining new litecoin based altcoin. Internal Server Error 500

1

1

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.

Wojtek B

Posted 2017-06-29T08:42:45.967

Reputation: 33

1are you running your coin wallet? try removing the http:// part of the urlAlbert s 2017-06-29T22:53:23.943

Yes, I run 3 wallets, each on separate VM, they can connect to each other.Wojtek B 2017-06-30T09:26:36.630

Answers

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.

Wojtek B

Posted 2017-06-29T08:42:45.967

Reputation: 33

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 2018-03-19T11:28:06.963

0

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

and execute

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

Carlos Gamarra charlie

Posted 2017-06-29T08:42:45.967

Reputation: 1

gen=0 has nothing to do with it by default gen means generate coins using core and it already disabled.zhiyan114 2018-04-20T13:13:24.350

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.

Chris Moore

Posted 2017-06-29T08:42:45.967

Reputation: 13 952

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 2018-10-19T07:41:10.367

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 2018-10-20T08:06:54.597