Bitcoin Forum
December 14, 2024, 03:49:28 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Having some issues with cpuminer  (Read 90 times)
BlackHatCoiner (OP)
Legendary
*
Offline Offline

Activity: 1736
Merit: 8449


Fiatheist


View Profile WWW
April 03, 2021, 05:27:49 PM
Last edit: April 03, 2021, 05:44:15 PM by BlackHatCoiner
 #1

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, 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?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
100knot2dae
Member
**
Offline Offline

Activity: 100
Merit: 29


View Profile
April 03, 2021, 06:05:34 PM
 #2

The default RPC port on bitcoind is 8332. 8333 is only used for node-to-node communication (e.g. replication)
BlackHatCoiner (OP)
Legendary
*
Offline Offline

Activity: 1736
Merit: 8449


Fiatheist


View Profile WWW
April 03, 2021, 09:32:56 PM
Last edit: April 04, 2021, 09:10:45 AM by BlackHatCoiner
 #3

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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!