Bitcoin Forum
June 19, 2021, 09:54:06 AM *
News: Latest Bitcoin Core release: 0.21.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 [70]
  Print  
Author Topic: An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only)  (Read 1956746 times)
minerja
Sr. Member
****
Offline Offline

Activity: 1239
Merit: 297


View Profile
February 17, 2021, 08:02:44 AM
Last edit: February 17, 2021, 05:54:56 PM by minerja
 #1381

I am trying to mine using this software like in the same way I use to mine other coins via CPU mining.

These are the steps I did:

1 - My bitcoin.conf file:


server=1
daemon=1
txindex=1

rpcport=8332
rpcuser=user
rpcpass=123456

2 - My conf file for minerd:

{
  "url": "http://127.0.0.1:8332",
  "userpass": "user:123456",
  "threads": "2",
  "algo": "sha256d",
  "debug": true,
  "no-longpoll": true,
  "no-stratum": true,
  "quiet": true
 }

3 - My Bitcoin core wallet is open, fully synchronized, and unlocked.

4 - I run the minerd with the command:

./minderd --config=./conf.json


But I get URL connection ERROR, what should I do different?



in the bitcoin.conf add
rpcallowip=127.0.0.1
and change
rpcpass=123456 to rpcpassword=123456
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Luca_Blight
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 18, 2021, 01:37:15 PM
 #1382

I am trying to mine using this software like in the same way I use to mine other coins via CPU mining.

These are the steps I did:

1 - My bitcoin.conf file:


server=1
daemon=1
txindex=1

rpcport=8332
rpcuser=user
rpcpass=123456

2 - My conf file for minerd:

{
  "url": "http://127.0.0.1:8332",
  "userpass": "user:123456",
  "threads": "2",
  "algo": "sha256d",
  "debug": true,
  "no-longpoll": true,
  "no-stratum": true,
  "quiet": true
 }

3 - My Bitcoin core wallet is open, fully synchronized, and unlocked.

4 - I run the minerd with the command:

./minderd --config=./conf.json


But I get URL connection ERROR, what should I do different?



in the bitcoin.conf add
rpcallowip=127.0.0.1
and change
rpcpass=123456 to rpcpassword=123456

Thank you, the problem was with the rpcpass, the correct is rpcpassword. I had to set in my conf file for minerd the coinbase-addr, now it seems the minerd is running, however I only get something like this:

DEBUG: got new work in 1069 ms

Not sure if it is really working.
minerja
Sr. Member
****
Offline Offline

Activity: 1239
Merit: 297


View Profile
February 18, 2021, 02:07:39 PM
 #1383

I am trying to mine using this software like in the same way I use to mine other coins via CPU mining.

These are the steps I did:

1 - My bitcoin.conf file:


server=1
daemon=1
txindex=1

rpcport=8332
rpcuser=user
rpcpass=123456

2 - My conf file for minerd:

{
  "url": "http://127.0.0.1:8332",
  "userpass": "user:123456",
  "threads": "2",
  "algo": "sha256d",
  "debug": true,
  "no-longpoll": true,
  "no-stratum": true,
  "quiet": true
 }

3 - My Bitcoin core wallet is open, fully synchronized, and unlocked.

4 - I run the minerd with the command:

./minderd --config=./conf.json


But I get URL connection ERROR, what should I do different?



in the bitcoin.conf add
rpcallowip=127.0.0.1
and change
rpcpass=123456 to rpcpassword=123456

Thank you, the problem was with the rpcpass, the correct is rpcpassword. I had to set in my conf file for minerd the coinbase-addr, now it seems the minerd is running, however I only get something like this:

DEBUG: got new work in 1069 ms

Not sure if it is really working.


You're not actually trying to mine BTC with a cpu are you?
With this level of difficulty, even if you were the only person mining, you MIGHT get a block in 1,000 years, but up against the current hashrate, you'd have more chance of living to be a 1000 year old than mine a block.

Not the way to learn cpu mining...
Luca_Blight
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 18, 2021, 05:14:26 PM
 #1384

I am trying to mine using this software like in the same way I use to mine other coins via CPU mining.

These are the steps I did:

1 - My bitcoin.conf file:


server=1
daemon=1
txindex=1

rpcport=8332
rpcuser=user
rpcpass=123456

2 - My conf file for minerd:

{
  "url": "http://127.0.0.1:8332",
  "userpass": "user:123456",
  "threads": "2",
  "algo": "sha256d",
  "debug": true,
  "no-longpoll": true,
  "no-stratum": true,
  "quiet": true
 }

3 - My Bitcoin core wallet is open, fully synchronized, and unlocked.

4 - I run the minerd with the command:

./minderd --config=./conf.json


But I get URL connection ERROR, what should I do different?



in the bitcoin.conf add
rpcallowip=127.0.0.1
and change
rpcpass=123456 to rpcpassword=123456

Thank you, the problem was with the rpcpass, the correct is rpcpassword. I had to set in my conf file for minerd the coinbase-addr, now it seems the minerd is running, however I only get something like this:

DEBUG: got new work in 1069 ms

Not sure if it is really working.


You're not actually trying to mine BTC with a cpu are you?
With this level of difficulty, even if you were the only person mining, you MIGHT get a block in 1,000 years, but up against the current hashrate, you'd have more chance of living to be a 1000 year old than mine a block.

Not the way to learn cpu mining...

I know I will get nothing, but I just would like to see this program working as it was planned to work since the beggining of Bitcoin mining. I mine others coins via CPU, I guess it would be the same way for Bitcoin as well, so I just wanted to see this working.
Pages: « 1 ... 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 [70]
  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!