1

I have cloned litecoin to make my own altcoin for fun and i want to solo mine the new coin using cpuminer on mainnet. I have compiled and installed cpu miner in my Mac OSX and i am running the altcoin daemon and opened the port as well.

./src/altcoind -daemon

When i run cpuminer i get this error.

./minerd -o http://127.0.0.1:26201 -O litecoinrpc:9eac7ba52764a6d42aa48386e8f435f8 -a scrypt --no-longpoll --no-getwork --no-stratum --coinbase-addr=xxxxxx

[2018-02-27 17:55:48] Binding thread 2 to cpu 2
[2018-02-27 17:55:48] Binding thread 0 to cpu 0
[2018-02-27 17:55:48] Binding thread 1 to cpu 1
[2018-02-27 17:55:48] Binding thread 4 to cpu 4
[2018-02-27 17:55:48] Binding thread 3 to cpu 3
[2018-02-27 17:55:48] Binding thread 5 to cpu 5
[2018-02-27 17:55:48] 8 miner threads started, using 'scrypt' algorithm.
[2018-02-27 17:55:48] Binding thread 6 to cpu 6
[2018-02-27 17:55:48] Binding thread 7 to cpu 7
[2018-02-27 17:55:48] HTTP request failed: Failed to connect to 127.0.0.1 port 26201: Connection refused
[2018-02-27 17:55:48] json_rpc_call failed, retry after 30 seconds

Here is my altcoin.conf

rpcuser=litecoinrpc
rpcpassword=xxxxxx
rpcport=262012
rpcallowip=127.0.0.1
server=1
gen=1
listen=1

Why is cpuminer not working?

Another attempt: I changed the conf file removing port

rpcuser=litecoinrpc
rpcpassword=xxxx
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1

and now it seems to connect to the port but i receive, empty reply from server

[2018-02-27 18:23:11] Binding thread 4 to cpu 4
[2018-02-27 18:23:11] Binding thread 5 to cpu 5
[2018-02-27 18:23:11] Binding thread 6 to cpu 6
[2018-02-27 18:23:11] 8 miner threads started, using 'scrypt' algorithm.
[2018-02-27 18:23:11] Binding thread 7 to cpu 7
[2018-02-27 18:23:11] HTTP request failed: Empty reply from server
[2018-02-27 18:23:11] json_rpc_call failed, retry after 30 seconds

Any help or advise is much appreciated.

  • your node should be connected to others – Badr Bellaj Jun 20 '18 at 20:13
2

I had similar issue and i switched to sgminer, even cgminer is good option but personally i used sgminer with same setting as yours, and everything is working fine in my case

  • (c/s)gminer is easy to configure and easy to setup as well – cryptoKTM Feb 28 '18 at 10:02
  • all these support scrypt? – pbu Feb 28 '18 at 15:16
  • ya they supprot scrypt and they are very easy to use and configure as well – cryptoKTM Mar 6 '18 at 7:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.