Bitcoin Forum
May 09, 2024, 02:50:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 19 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 71 »
  Print  
Author Topic: An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only)  (Read 1958273 times)
minerja
Sr. Member
****
Offline Offline

Activity: 1248
Merit: 297


View Profile
January 15, 2021, 08:34:36 AM
 #1361

I've tried to used cpuminer to mine Scrypt algorithm before but until this day I still can't configure or make it work, after many tutors through reddit it's still not working, can someone drop me the full configuration here ? I will appreciate

PM me i'll see if i can help
1715223001
Hero Member
*
Offline Offline

Posts: 1715223001

View Profile Personal Message (Offline)

Ignore
1715223001
Reply with quote  #2

1715223001
Report to moderator
1715223001
Hero Member
*
Offline Offline

Posts: 1715223001

View Profile Personal Message (Offline)

Ignore
1715223001
Reply with quote  #2

1715223001
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715223001
Hero Member
*
Offline Offline

Posts: 1715223001

View Profile Personal Message (Offline)

Ignore
1715223001
Reply with quote  #2

1715223001
Report to moderator
Abuliglig
Newbie
*
Offline Offline

Activity: 24
Merit: 8


View Profile
January 16, 2021, 09:14:59 AM
Merited by minerja (2)
 #1362

My system is as follows: 

400GB free.
my RAM is 8GB
Intel Core i5-4210U CPU @ 1.70GHz   2.40 GHz
Bitcoin Client Software and Version Number: V0.20.1
Operating System: Windows 10 (64)I already have bitcoin core running on this laptop.


I appreciate your help in this matter. I would like to run a CPU Bitcoin miner on my laptop for a few hours- I know I will not earn anything, but I'm keen to do some mining.

I downloaded Poolers CPU miner from Github and used this instructional video (https://youtu.be/kFudfJ7fTrI) on how to set it up.

Please bear in mind that  I'm not a programmer or coder, just a guy with an interest in Bitcoin with some superficial knowledge on computing who is eager to learn.

I switched the antivirus off and I was able to run the "minerd.exe" program using the CMD. 

When I run the program, I get this error message:

[2021-01-15 20:25:11] HTTP request failed: Failed to connect to 127.0.0.1 port 13000: Connection refused  

I'm not sure why this is happening.

I am connected to the internet. 
I switched my VPN off in case it was the cause.
I'm running Bitcoin Core and it has multiple connections and is synched up to date.

 
The configuration file "Bitcoin.conf" is located within the "Bitcoin" folder in %AppData% and is as follows:

server=1
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=13000 

I ran the "minerd.exe" program with the following command:
 
minerd.exe -a sha256d -O user:password -o 127.0.0.1:13000 --coinbase-addr=""xxxxxxx bitcoing address xxxxxxx" -t 2

I also tried this:

minerd.exe -a sha256d -O user:password -o http://127.0.0.1:13000/ --coinbase-addr=bc1q5d7lfmu9esswxjayjyynk5tn8jd2w9x5jxn0n5 -t 2
 
On both occasions I get the error: HTTP request failed: Failed to connect to 127.0.0.1 port 13000: Connection refused    

Can you please give some guidance as to what I should do to resolve this issue??

Thank you very much.
Abu
minerja
Sr. Member
****
Offline Offline

Activity: 1248
Merit: 297


View Profile
January 16, 2021, 03:38:36 PM
 #1363

My system is as follows: 

400GB free.
my RAM is 8GB
Intel Core i5-4210U CPU @ 1.70GHz   2.40 GHz
Bitcoin Client Software and Version Number: V0.20.1
Operating System: Windows 10 (64)I already have bitcoin core running on this laptop.


I appreciate your help in this matter. I would like to run a CPU Bitcoin miner on my laptop for a few hours- I know I will not earn anything, but I'm keen to do some mining.

I downloaded Poolers CPU miner from Github and used this instructional video (https://youtu.be/kFudfJ7fTrI) on how to set it up.

Please bear in mind that  I'm not a programmer or coder, just a guy with an interest in Bitcoin with some superficial knowledge on computing who is eager to learn.

I switched the antivirus off and I was able to run the "minerd.exe" program using the CMD. 

When I run the program, I get this error message:

[2021-01-15 20:25:11] HTTP request failed: Failed to connect to 127.0.0.1 port 13000: Connection refused  

I'm not sure why this is happening.

I am connected to the internet. 
I switched my VPN off in case it was the cause.
I'm running Bitcoin Core and it has multiple connections and is synched up to date.

 
The configuration file "Bitcoin.conf" is located within the "Bitcoin" folder in %AppData% and is as follows:

server=1
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=13000 

I ran the "minerd.exe" program with the following command:
 
minerd.exe -a sha256d -O user:password -o 127.0.0.1:13000 --coinbase-addr=""xxxxxxx bitcoing address xxxxxxx" -t 2

I also tried this:

minerd.exe -a sha256d -O user:password -o http://127.0.0.1:13000/ --coinbase-addr=bc1q5d7lfmu9esswxjayjyynk5tn8jd2w9x5jxn0n5 -t 2
 
On both occasions I get the error: HTTP request failed: Failed to connect to 127.0.0.1 port 13000: Connection refused    

Can you please give some guidance as to what I should do to resolve this issue??

Thank you very much.
Abu

--------------------------------------
2 issues

Issue 1
 need to change .conf
----------------------
server=1
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=13000
----------------------
 change to
----------------------
server=1
listen=1
daemon=1
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=13000
----------------------

This will now work for most solo mining (sometimes --coinbase-addr=bc1q5d7lfmu9esswxjayjyynk5tn8jd2w9x5jxn0n5 helps sometimes fails - try both ways)

HOWEVER
issue 2

You can no longer solo mine to the BTC wallet. I cannot remember the version but they removed the rpc function, i think from version 16 onwards.
If you want to solo mine, it will have to be another coin. (Unless a solo pool for BTC exists)

Are you just wanting to learn how to solo mine? If so i can probably find an old worthless coin that still syncs and  is cpu minable, just so you can see the process.
JayDDee
Full Member
***
Offline Offline

Activity: 1386
Merit: 220


View Profile
January 16, 2021, 04:37:19 PM
 #1364


You can no longer solo mine to the BTC wallet.

You're thinking of the mining software built in to the wallet, that no longer exists. You can still mine solo using RPC,
it's required for any mining to be possible. It's just futile to do so with a CPU.

I think the user's problem is the firewall, Port 13000 needs to be opened for local clients.

Abuliglig
Newbie
*
Offline Offline

Activity: 24
Merit: 8


View Profile
January 16, 2021, 04:50:11 PM
 #1365


You can no longer solo mine to the BTC wallet.

You're thinking of the mining software built in to the wallet, that no longer exists. You can still mine solo using RPC,
it's required for any mining to be possible. It's just futile to do so with a CPU.

I think the user's problem is the firewall, Port 13000 needs to be opened for local clients.


Can you kindly tell me how I open the 1300 Port, please?
I know it's futile, but still want to try Smiley
minerja
Sr. Member
****
Offline Offline

Activity: 1248
Merit: 297


View Profile
January 16, 2021, 04:55:49 PM
 #1366


You can no longer solo mine to the BTC wallet.

You're thinking of the mining software built in to the wallet, that no longer exists. You can still mine solo using RPC,
it's required for any mining to be possible. It's just futile to do so with a CPU.

I think the user's problem is the firewall, Port 13000 needs to be opened for local clients.


Hi Jaydee....

I have tried using you're miner...works with BTC 16 and lower, but not higher
JayDDee
Full Member
***
Offline Offline

Activity: 1386
Merit: 220


View Profile
January 16, 2021, 05:01:47 PM
 #1367


You can no longer solo mine to the BTC wallet.

You're thinking of the mining software built in to the wallet, that no longer exists. You can still mine solo using RPC,
it's required for any mining to be possible. It's just futile to do so with a CPU.

I think the user's problem is the firewall, Port 13000 needs to be opened for local clients.


Can you kindly tell me how I open the 1300 Port, please?
I know it's futile, but still want to try Smiley

Configuring your firewall is not a mining issue and it depends on the OS you're using. Do a little research,
it shouldn't be too hard to find tutorials and howtos.

JayDDee
Full Member
***
Offline Offline

Activity: 1386
Merit: 220


View Profile
January 16, 2021, 05:02:55 PM
 #1368

Hi Jaydee....

I have tried using you're miner...works with BTC 16 and lower, but not higher


I don't know what you mean, follow up in my thread.

Abuliglig
Newbie
*
Offline Offline

Activity: 24
Merit: 8


View Profile
January 16, 2021, 05:13:39 PM
 #1369


You can no longer solo mine to the BTC wallet.

You're thinking of the mining software built in to the wallet, that no longer exists. You can still mine solo using RPC,
it's required for any mining to be possible. It's just futile to do so with a CPU.

I think the user's problem is the firewall, Port 13000 needs to be opened for local clients.


Can you kindly tell me how I open the 1300 Port, please?
I know it's futile, but still want to try Smiley

Configuring your firewall is not a mining issue and it depends on the OS you're using. Do a little research,
it shouldn't be too hard to find tutorials and howtos.

Thank you for this, I'll look it up.
Abuliglig
Newbie
*
Offline Offline

Activity: 24
Merit: 8


View Profile
January 16, 2021, 06:06:15 PM
 #1370


You can no longer solo mine to the BTC wallet.

You're thinking of the mining software built in to the wallet, that no longer exists. You can still mine solo using RPC,
it's required for any mining to be possible. It's just futile to do so with a CPU.

I think the user's problem is the firewall, Port 13000 needs to be opened for local clients.


Can you kindly tell me how I open the 1300 Port, please?
I know it's futile, but still want to try Smiley

Configuring your firewall is not a mining issue and it depends on the OS you're using. Do a little research,
it shouldn't be too hard to find tutorials and howtos.

I have looked up how to get the firewall to allow the 13000 port, but do I set it for Inbound or Outbound traffic or for both?

Thank you
Abu.
JayDDee
Full Member
***
Offline Offline

Activity: 1386
Merit: 220


View Profile
January 16, 2021, 06:17:47 PM
Merited by minerja (1)
 #1371


I have looked up how to get the firewall to allow the 13000 port, but do I set it for Inbound or Outbound traffic or for both?

Thank you
Abu.


Short answer, both.

Outbound is for clients and is usually allowed by default.
Inbound is for servers and should only be allowed under strict conditions.

minerja
Sr. Member
****
Offline Offline

Activity: 1248
Merit: 297


View Profile
January 16, 2021, 06:49:50 PM
 #1372


You can no longer solo mine to the BTC wallet.

You're thinking of the mining software built in to the wallet, that no longer exists. You can still mine solo using RPC,
it's required for any mining to be possible. It's just futile to do so with a CPU.

I think the user's problem is the firewall, Port 13000 needs to be opened for local clients.


I have just tried this with wallet 20.1 and i can't get it to work either...works perfect with Bitcoin Wallet 16
C:\Users\Miner_NVMe\Crypto\0 Miners\cpuminer-opt-3.15.4-windows>cpuminer-zen -a sha256d -o http://127.0.0.1:8332 -u xxxx
 -p xxxx -t 1 --coinbase-addr=aQimFGHgkiyRQMtTFEJ9GnCFHipT1AQMcy

         **********  cpuminer-opt 3.15.4  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AVX512, SHA and VAES extensions by JayDDee.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: AMD Ryzen 7 1800X Eight-Core Processor
SW built on Dec 15 2020 with GCC 9.3.0
CPU features:  AVX2    AES SHA
SW features:   AVX2    AES SHA
Algo features: AVX2

Starting miner with AVX2...

[2021-01-16 18:48:07] CPU affinity [!!!!!!!!!!!!!!!!]
[2021-01-16 18:48:07] 1 of 16 miner threads started using 'sha256d' algorithm
[2021-01-16 18:48:07] Miner thread priority 0 (nice 19)
[2021-01-16 18:48:08] Empty data received in json_rpc_call.
[2021-01-16 18:48:08] getblocktemplate failed, falling back to getwork
[2021-01-16 18:48:08] Empty data received in json_rpc_call.
[2021-01-16 18:48:08] json_rpc_call failed, retry after 10 seconds
[2021-01-16 18:48:18] Empty data received in json_rpc_call.
[2021-01-16 18:48:18] json_rpc_call failed, retry after 10 seconds
JayDDee
Full Member
***
Offline Offline

Activity: 1386
Merit: 220


View Profile
January 16, 2021, 07:41:21 PM
 #1373

Does Pooler work? cpuminer-multi? GPU miners?
It looks like a protocol change in the Bitcoin RPC. It's not worth fixing even if I knew how,
CPU mining BTC is long obsolete.

darkninja13
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
January 21, 2021, 12:22:02 AM
 #1374

can you make cpuminer version for mobile iOS, Android or Javascript web client?
Luca_Blight
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
February 16, 2021, 06:40:19 PM
 #1375

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?


minerja
Sr. Member
****
Offline Offline

Activity: 1248
Merit: 297


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

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
Luca_Blight
Newbie
*
Offline Offline

Activity: 8
Merit: 0


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

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: 1248
Merit: 297


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

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: 8
Merit: 0


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

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.
otacilioricardo
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
August 08, 2021, 04:36:23 AM
 #1380

Hello.

I tried to install CPUminer, on Windows 10, using the commands from the website below.

Website: https://github.com/pooler/cpuminer

Can this program be used on a cluster, with Debian? Text mode only.

I plan to create my Bitcoin farm. Programming is not a problem.
What initial steps?

Thanks.

Olá.

Tentei instalar o CPUminer, no Windows 10, usando os comandos do site abaixo.

Site: https://github.com/pooler/cpuminer

Esse programa pode ser usando em um cluster, com Debian? Somente modo texto.

Pretendo criar minha fazenda de Bitcoins. A programação não é problema.
Quais passos iniciais?

Obrigado.
Pages: « 1 ... 19 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 71 »
  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!