Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: BlackHatCoiner on April 03, 2021, 05:27:49 PM



Title: Having some issues with cpuminer
Post by: BlackHatCoiner on April 03, 2021, 05:27:49 PM
Hi, I'm a newbie at mining, I have never mined any coins or helped a pool with my computational power, I just know the basics of how mining works. Some months ago I forked bitcoin core and wrote a guide of how to do it too (https://bitcointalk.org/index.php?topic=5309100.msg56085433#msg56085433), because I find it really interesting when you implement an idea (that can be implemented). Although, the action is far from the theory. I found a lot of difficulties on my way.

I've solved some blocks on my forked Bitcoin Core, but I want to switch to cpuminer, since it's better to compute on the command line than on a UI. This is what I execute:

Code:
minerd --user rpcuser --pass 111111 --url http://127.0.0.1:8333/ --threads 4 --coinbase-addr 3B9dSAqGNSyPasdSrwbJZ2rLSgPmyt8bQQ --coinbase-sig "my test coins" -a sha256d -D

And this is what I get:


It has returned other errors on my forked Bitcoin Core, but I've ran it, above, on pruned Bitcoin Core (that follows the original bitcoin chain) and right now I get this. What am I doing wrong?


Title: Re: Having some issues with cpuminer
Post by: 100knot2dae on April 03, 2021, 06:05:34 PM
The default RPC port on bitcoind is 8332. 8333 is only used for node-to-node communication (e.g. replication)


Title: Re: Having some issues with cpuminer
Post by: BlackHatCoiner on April 03, 2021, 09:32:56 PM
The default RPC port on bitcoind is 8332. 8333 is only used for node-to-node communication (e.g. replication)
This is what I get when I run the same but with "8332":
Code:
[2021-04-03 22:32:14] 4 miner threads started, using 'sha256d' algorithm.
[2021-04-03 22:32:15] HTTP request failed: The requested URL returned error: 401
[2021-04-03 22:32:15] json_rpc_call failed, retry after 30 seconds

Edit: Nevermind I had to set rpcport=8332 on the config file.